From f5227e9d8a1e5da425531c4cffa2f37944548423 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 31 Dec 2016 13:27:39 -0500 Subject: [PATCH] simplify target libgcc build step to be less of a hack --- litecross/Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/litecross/Makefile b/litecross/Makefile index 46d95db..c7c583f 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -172,12 +172,8 @@ obj_sysroot/.lc_headers: | obj_musl/.lc_configured obj_sysroot cd obj_musl && $(MAKE) DESTDIR=$(CURDIR)/obj_sysroot install-headers touch $@ -obj_toolchain/$(TARGET)/libgcc/.lc_configured: | obj_sysroot/.lc_headers - cd obj_toolchain && $(MAKE) MAKE="$(MAKE)" configure-target-libgcc - touch $@ - -obj_toolchain/$(TARGET)/libgcc/libgcc.a: | obj_toolchain/$(TARGET)/libgcc/.lc_configured - cd $(dir $@) && $(MAKE) MAKE="$(MAKE)" libgcc.a +obj_toolchain/$(TARGET)/libgcc/libgcc.a: | obj_sysroot/.lc_headers + cd obj_toolchain && $(MAKE) MAKE="$(MAKE) enable_shared=no" all-target-libgcc obj_musl/.lc_built: | obj_musl/.lc_configured cd obj_musl && $(MAKE) $(MUSL_VARS)