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.
This commit is contained in:
Rich Felker 2016-05-02 17:58:38 +00:00
parent 0ab346e85d
commit 7160eb79e4
1 changed files with 5 additions and 5 deletions

View File

@ -99,7 +99,7 @@ obj_toolchain/.lc_configured: | obj_toolchain src_toolchain
touch $@ touch $@
obj_toolchain/gcc/.lc_built: | obj_toolchain/.lc_configured obj_sysroot/usr obj_sysroot/lib64 obj_sysroot/include 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 $@ touch $@
obj_musl/.lc_configured: | obj_toolchain/gcc/.lc_built obj_musl src_musl 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 $@ touch $@
obj_toolchain/$(TARGET)/libgcc/.lc_configured: | obj_sysroot/.lc_headers 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 $@ touch $@
obj_toolchain/$(TARGET)/libgcc/libgcc.a: | obj_toolchain/$(TARGET)/libgcc/.lc_configured 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 obj_musl/.lc_built: | obj_toolchain/$(TARGET)/libgcc/libgcc.a
cd obj_musl && $(MAKE) $(MUSL_VARS) cd obj_musl && $(MAKE) $(MUSL_VARS)
@ -126,14 +126,14 @@ obj_sysroot/.lc_libs: | obj_musl/.lc_built
touch $@ touch $@
obj_toolchain/.lc_built: | obj_toolchain/.lc_configured obj_sysroot/.lc_libs 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 $@ touch $@
install-musl: | obj_musl/.lc_built install-musl: | obj_musl/.lc_built
cd obj_musl && $(MAKE) $(MUSL_VARS) DESTDIR=$(DESTDIR)$(OUTPUT)/$(TARGET) install cd obj_musl && $(MAKE) $(MUSL_VARS) DESTDIR=$(DESTDIR)$(OUTPUT)/$(TARGET) install
install-toolchain: | obj_toolchain/.lc_built 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 endif