diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2004-05-22 23:12:47 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2004-05-22 23:12:47 +0000 |
commit | e09ddec8727f070a9eae7a4ce2815a098399ec97 (patch) | |
tree | 61cdc32e4af7b4e18876cbe4d1e67bd30408555b /gcc/gcc-cross_3.3.3.oe | |
parent | f77f3af77b568d127a4d88f44d4566def27a3862 (diff) |
fixed libstdc++5 building
BKrev: 40afde6fznbFcSo7rkeYNxT0JLSAdw
Diffstat (limited to 'gcc/gcc-cross_3.3.3.oe')
-rw-r--r-- | gcc/gcc-cross_3.3.3.oe | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gcc/gcc-cross_3.3.3.oe b/gcc/gcc-cross_3.3.3.oe index 3fbc4d76f3..6131c30d37 100644 --- a/gcc/gcc-cross_3.3.3.oe +++ b/gcc/gcc-cross_3.3.3.oe @@ -5,7 +5,8 @@ FILESDIR = "${@os.path.dirname(oe.data.getVar('FILE',d,1))}/gcc-${PV}" DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc" PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++" -PACKAGES = "libgcc" +# Files for these are defined in the main gcc.oe +PACKAGES = "libgcc libstdc++ libg2c" INHIBIT_PACKAGE_STRIP = 1 EXTRA_OECONF_PATHS = "--with-local-prefix=${CROSS_DIR}/${TARGET_SYS} \ @@ -80,4 +81,16 @@ do_install () { else mv -f ${D}/${prefix}/*/lib/libgcc_s.so.* ${D}/lib fi + + # Move libstdc++ and libg2c into libdir (resetting our prefix to /usr + TGT_LIBDIR=`echo ${libdir} | sed -e 's,${CROSS_DIR},/usr,'` + mkdir -p ${D}/${TGT_LIBDIR} + mv -f ${D}/${prefix}/*/lib/libstdc++.so.* ${D}/${TGT_LIBDIR} + mv -f ${D}/${prefix}/*/lib/libg2c.so.* ${D}/${TGT_LIBDIR} + + # Manually run the target stripper since we won't get it run by + # the packaging. + ${TARGET_PREFIX}strip ${D}/${TGT_LIBDIR}/libstdc++.so.* + ${TARGET_PREFIX}strip ${D}/${TGT_LIBDIR}/libg2c.so.* + ${TARGET_PREFIX}strip ${D}/libgcc_s.so.* } |