diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 13:44:34 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 13:44:34 +0200 |
commit | 141bcc0f9d8ebfd06865420653333347d19dc39d (patch) | |
tree | 8e498c7bb1df59a89e6bf35d7141b55dc796165c /package/gcc | |
parent | 1298200f89501407736f0657de5d96a3e7a453b0 (diff) |
fix gcc package
- simple test c program compiles in qemu-mips with the
cross-compiled compiler
- don't know if rstrip.sh change is good, need to check,
but crt*.o symbols might not be stripped
- create helper links for libgcc + libc needed for ld
Diffstat (limited to 'package/gcc')
-rw-r--r-- | package/gcc/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile index d2a05cbdb..db44c8e3a 100644 --- a/package/gcc/Makefile +++ b/package/gcc/Makefile @@ -16,6 +16,7 @@ ifeq ($(ADK_LINUX_MIPS64_LEMOTE),y) CONFIGURE_ARGS+= --with-abi=64 endif CONFIGURE_ARGS+= --enable-languages=c \ + --libexecdir=/usr/lib \ --host=$(REAL_GNU_TARGET_NAME) \ --target=$(REAL_GNU_TARGET_NAME) \ --disable-__cxa_atexit \ @@ -32,9 +33,12 @@ INSTALL_STYLE:= auto INSTALL_TARGET:= install-gcc install-target-libgcc post-install: - ${INSTALL_DIR} ${IDIR_GCC}/usr/lib - ${INSTALL_DIR} ${IDIR_GCC}/usr/bin + ${INSTALL_DIR} ${IDIR_GCC}/usr/lib/gcc ${IDIR_GCC}/usr/bin ${INSTALL_BIN} ${WRKINST}/usr/bin/gcc ${IDIR_GCC}/usr/bin/ - ${INSTALL_BIN} ${WRKINST}/usr/bin/ccp ${IDIR_GCC}/usr/bin/ + ${INSTALL_BIN} ${WRKINST}/usr/bin/cpp ${IDIR_GCC}/usr/bin/ + ${CP} ${WRKINST}/usr/lib/gcc/* ${IDIR_GCC}/usr/lib/gcc/ + ${CP} ${STAGING_DIR}/lib/crt* ${IDIR_GCC}/usr/lib + rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/include-fixed + rm -rf ${IDIR_GCC}/usr/lib/gcc/*/*/install-tools include ${TOPDIR}/mk/pkg-bottom.mk |