From eb41c870e202e869b0163676815fabb4bb5d97c5 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 3 Dec 2016 01:28:50 -0800 Subject: [PATCH] Don't pass --with-build-sysroot with NATIVE build This is not needed since we already have a native musl toolchain at our disposal. Previously, since this flag was passed for NATIVE=1, the build would fail because the build sysroot is only built for cross toolchains. --- litecross/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecross/Makefile b/litecross/Makefile index 030db62..d61c6ed 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -51,7 +51,6 @@ FULL_TOOLCHAIN_CONFIG = --enable-languages=c,c++ \ --target=$(TARGET) --prefix= \ --libdir=/lib --disable-multilib \ --with-sysroot=$(SYSROOT) \ - --with-build-sysroot=$(CURDIR)/obj_sysroot \ --enable-tls \ --disable-libmudflap --disable-libsanitizer \ --disable-gnu-indirect-function \ @@ -63,6 +62,7 @@ FULL_MUSL_CONFIG = $(MUSL_CONFIG) \ ifeq ($(NATIVE),) SYSROOT = /$(TARGET) +FULL_TOOLCHAIN_CONFIG += --with-build-sysroot=$(CURDIR)/obj_sysroot FULL_MUSL_CONFIG += CC="$(XGCC)" LIBCC="../obj_toolchain/$(TARGET)/libgcc/libgcc.a" MUSL_VARS = AR=../obj_toolchain/binutils/ar RANLIB=../obj_toolchain/binutils/ranlib obj_musl/.lc_built: | obj_toolchain/$(TARGET)/libgcc/libgcc.a