summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2004-04-25 10:24:33 +0000
committerMichael Lauer <mickey@vanille-media.de>2004-04-25 10:24:33 +0000
commit3130f8077cf6d5cb67dec51cf9f9bb54e6a994ff (patch)
tree0e013ab22eb404db8331e1ae32c54ef22609bde0 /gcc
parent7f40a3ac02dae06959531ccaf2a171cc1b148543 (diff)
turn on f77 and add some support for native compiles - patch courtesy pb_.
BKrev: 408b91e1a5Y-wfd1DijU4__cWs_q1Q
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc-cross_3.3.3.oe13
1 files changed, 9 insertions, 4 deletions
diff --git a/gcc/gcc-cross_3.3.3.oe b/gcc/gcc-cross_3.3.3.oe
index 1bbed5328c..733a1bfb55 100644
--- a/gcc/gcc-cross_3.3.3.oe
+++ b/gcc/gcc-cross_3.3.3.oe
@@ -9,16 +9,16 @@ PACKAGES = "libgcc"
EXTRA_OECONF = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \
--with-gxx-include-dir=${CROSS_DIR}/${TARGET_SYS}/include/c++ \
- --with-headers=${CROSS_DIR}/${TARGET_SYS}/include \
--disable-nls \
--enable-threads=posix \
--enable-symvers=gnu \
--enable-__cxa_atexit \
- --enable-languages=c,c++ \
+ --enable-languages=c,c++,f77 \
--enable-shared \
--enable-c99 \
--enable-long-long \
- --program-prefix=${TARGET_PREFIX}"
+ --program-prefix=${TARGET_PREFIX} \
+ ${@['--with-headers=${CROSS_DIR}/${TARGET_SYS}/include', '']['${BUILD_SYS}' == '${HOST_SYS}']}"
FILES_libgcc = "/lib/libgcc_s.so.*"
@@ -84,5 +84,10 @@ do_install () {
# Move libgcc_s into /lib
mkdir -p ${D}/lib
- mv -f ${D}/${prefix}/*/lib/libgcc_s.so.* ${D}/lib
+ if [ "${BUILD_SYS}" == "${TARGET_SYS}" ]; then
+ # native builds drop one pathname component
+ mv -f ${D}/${prefix}/lib/libgcc_s.so.* ${D}/lib
+ else
+ mv -f ${D}/${prefix}/*/lib/libgcc_s.so.* ${D}/lib
+ fi
}