summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/gcc/Makefile2
-rw-r--r--toolchain/gcc/Makefile2
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 $@