From 97173cd74f4a93cd4cb3cb28d63caafb2bdb8d79 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 630cce6..7be706b 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -52,7 +52,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 \ @@ -64,6 +63,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