diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-06 17:15:30 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-03-06 17:15:30 +0100 |
commit | 82c6a8783762311101d342edef1d8492b0feac52 (patch) | |
tree | ab31de8edf8e2d6e278ede7fbd741f58c78c75b6 | |
parent | 091853fb61e56b30e7d069a921d81ab6715a9dd8 (diff) |
fix cross-compile of gcc, when using uClibc. --dynamic-linker was using /lib/ld-uClibc.so.0
-rw-r--r-- | package/gcc/Makefile | 2 | ||||
-rw-r--r-- | toolchain/gcc/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile index 1dbf981cf..c0c5f749a 100644 --- a/package/gcc/Makefile +++ b/package/gcc/Makefile @@ -14,8 +14,6 @@ PKG_BUILDDEP:= libmpc gmp mpfr PKG_SUBPKGS:= GCC GXX PKGSD_GXX:= GNU C++ compiler -PKG_LIBC_DEPENDS:= glibc musl - WRKBUILD= ${WRKDIR}/${PKG_NAME}-obj include ${TOPDIR}/mk/package.mk diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile index 138e3a0d0..f32b1836d 100644 --- a/toolchain/gcc/Makefile +++ b/toolchain/gcc/Makefile @@ -18,6 +18,7 @@ GCC_CONFOPTS= --prefix=$(STAGING_HOST_DIR) \ --with-libelf=$(STAGING_HOST_DIR) \ --disable-__cxa_atexit \ --with-gnu-ld \ + --with-gnu-as \ --disable-libsanitizer \ --disable-libitm \ --disable-libmudflap \ @@ -176,6 +177,7 @@ $(GCC_BUILD_DIR_FINAL)/.configured: $(WRKBUILD)/configure \ ${GCC_CONFOPTS} \ --enable-languages=$(LANGUAGES) \ + --with-build-sysroot='$${prefix}/${STAGING_HOST2TARGET}' \ --with-sysroot='$${prefix}/${STAGING_HOST2TARGET}' \ --enable-shared touch $@ |