From 7160eb79e4798e9a1d0264aea193754ee1e7758c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 2 May 2016 17:58:38 +0000 Subject: [PATCH] litecross: pass any updates to the MAKE var into gcc build system adding them to $(MAKE) is the best way I know to get make variable overrides into the gcc build system. --- litecross/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litecross/Makefile b/litecross/Makefile index 5ca8c94..5378da1 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -99,7 +99,7 @@ obj_toolchain/.lc_configured: | obj_toolchain src_toolchain touch $@ obj_toolchain/gcc/.lc_built: | obj_toolchain/.lc_configured obj_sysroot/usr obj_sysroot/lib64 obj_sysroot/include - cd obj_toolchain && $(MAKE) LC_ROOT=$(PWD) all-gcc + cd obj_toolchain && $(MAKE) MAKE="$(MAKE)" LC_ROOT=$(PWD) all-gcc touch $@ obj_musl/.lc_configured: | obj_toolchain/gcc/.lc_built obj_musl src_musl @@ -111,11 +111,11 @@ obj_sysroot/.lc_headers: | obj_musl/.lc_configured obj_sysroot touch $@ obj_toolchain/$(TARGET)/libgcc/.lc_configured: | obj_sysroot/.lc_headers - cd obj_toolchain && $(MAKE) LC_ROOT=$(PWD) configure-target-libgcc + cd obj_toolchain && $(MAKE) MAKE="$(MAKE)" LC_ROOT=$(PWD) configure-target-libgcc touch $@ obj_toolchain/$(TARGET)/libgcc/libgcc.a: | obj_toolchain/$(TARGET)/libgcc/.lc_configured - cd $(dir $@) && $(MAKE) LC_ROOT=$(PWD) libgcc.a + cd $(dir $@) && $(MAKE) MAKE="$(MAKE)" LC_ROOT=$(PWD) libgcc.a obj_musl/.lc_built: | obj_toolchain/$(TARGET)/libgcc/libgcc.a cd obj_musl && $(MAKE) $(MUSL_VARS) @@ -126,14 +126,14 @@ obj_sysroot/.lc_libs: | obj_musl/.lc_built touch $@ obj_toolchain/.lc_built: | obj_toolchain/.lc_configured obj_sysroot/.lc_libs - cd obj_toolchain && $(MAKE) LC_ROOT=$(PWD) + cd obj_toolchain && $(MAKE) MAKE="$(MAKE)" LC_ROOT=$(PWD) touch $@ install-musl: | obj_musl/.lc_built cd obj_musl && $(MAKE) $(MUSL_VARS) DESTDIR=$(DESTDIR)$(OUTPUT)/$(TARGET) install install-toolchain: | obj_toolchain/.lc_built - cd obj_toolchain && $(MAKE) LC_ROOT=$(PWD) DESTDIR=$(DESTDIR)$(OUTPUT) install + cd obj_toolchain && $(MAKE) MAKE="$(MAKE)" LC_ROOT=$(PWD) DESTDIR=$(DESTDIR)$(OUTPUT) install endif