summaryrefslogtreecommitdiff
path: root/content/cross-gcc-3.3.1.oe
diff options
context:
space:
mode:
Diffstat (limited to 'content/cross-gcc-3.3.1.oe')
-rw-r--r--content/cross-gcc-3.3.1.oe29
1 files changed, 29 insertions, 0 deletions
diff --git a/content/cross-gcc-3.3.1.oe b/content/cross-gcc-3.3.1.oe
index e69de29bb2..a2022ee26b 100644
--- a/content/cross-gcc-3.3.1.oe
+++ b/content/cross-gcc-3.3.1.oe
@@ -0,0 +1,29 @@
+PROVIDES="virtual/${OLDARCH}-${OLDOS}-gcc"
+
+SRC_URI = ${GNU_MIRROR}/gcc/gcc-${PV}.tar.gz
+S = ${WORKDIR}/gcc-${PV}
+
+OLDOS := ${OS}
+OLDARCH := ${ARCH}
+CROSS_DIR := ${CROSS_DIR}
+inherit noncross autotools
+
+EXTRA_OECONF = --with-gxx-include-dir=${CROSS_DIR}/include/c++ \
+ --enable-shared \
+ --enable-threads
+tmake_file = gcc/config/${OLDARCH}/t-linux
+
+do_configure() {
+ ./configure --target=${OLDARCH}-${OLDOS} --prefix=${CROSS_DIR} \
+ --with-gnu-ld --oldincludedir=${CROSS_DIR}/include \
+ --enable-shared ${EXTRA_OECONF}
+ touch ${tmake_file}
+ mv ${tmake_file} > ${tmake_file}.tmp
+ cat ${tmake_file}.tmp | sed -e's/-Dinhibit_libc -D__gthr_posix_h//g' > ${tmake_file}
+ rm -f ${tmake_file}.tmp
+}
+
+EXTRA_OEMAKE =
+do_compile() {
+ oe_runmake
+}