From 0b2487ef91c443834f5154a285e907831dce3da5 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 29 Oct 2018 23:01:00 -0400 Subject: [PATCH] slibtool support: remove the LIBTOOL_STATIC_ARG var (no longer needed). Beginning with slibtool version 0.5.26 and the introduction of the rlibtool symlink (the equivalent of slibtool --heuristics), slibtool may now be told to automatically detect its desired operation mode (share-only, static-only, or both) by way of parsing the generated libtool script which it replaces. --- litecross/Makefile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/litecross/Makefile b/litecross/Makefile index b96bb1e..4894416 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -48,14 +48,7 @@ GCC_CONFIG_FOR_TARGET += --with-float=hard endif ifneq ($(LIBTOOL),) - -ifeq ($(LIBTOOL_STATIC),) -LIBTOOL_STATIC = $(LIBTOOL)-static -endif - -LIBTOOL_ARG = LIBTOOL=$(LIBTOOL) -LIBTOOL_STATIC_ARG = LIBTOOL=$(LIBTOOL_STATIC) - +LIBTOOL_ARG = LIBTOOL=$(LIBTOOL) endif MAKE += MULTILIB_OSDIRNAMES= @@ -207,7 +200,7 @@ obj_binutils/.lc_configured: | obj_binutils src_binutils touch $@ obj_binutils/.lc_built: | obj_binutils/.lc_configured - cd obj_binutils && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_STATIC_ARG)" all + cd obj_binutils && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" all touch $@ obj_gcc/.lc_configured: | obj_gcc src_gcc @@ -215,15 +208,15 @@ obj_gcc/.lc_configured: | obj_gcc src_gcc touch $@ obj_gcc/.lc_gmp_built: | obj_gcc/.lc_configured - cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_STATIC_ARG)" all-gmp + cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" all-gmp touch $@ obj_gcc/.lc_mpfr_built: | obj_gcc/.lc_gmp_built - cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_STATIC_ARG)" all-mpfr + cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" all-mpfr touch $@ obj_gcc/.lc_mpc_built: | obj_gcc/.lc_mpfr_built - cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_STATIC_ARG)" all-mpc + cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" all-mpc touch $@ obj_gcc/gcc/.lc_built: | obj_gcc/.lc_mpc_built @@ -257,7 +250,7 @@ install-musl: | obj_musl/.lc_built cd obj_musl && $(MAKE) $(MUSL_VARS) DESTDIR=$(DESTDIR)$(OUTPUT)$(SYSROOT) install install-binutils: | obj_binutils/.lc_built - cd obj_binutils && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_STATIC_ARG)" DESTDIR=$(DESTDIR)$(OUTPUT) install + cd obj_binutils && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" DESTDIR=$(DESTDIR)$(OUTPUT) install install-gcc: | obj_gcc/.lc_built cd obj_gcc && $(MAKE) MAKE="$(MAKE) $(LIBTOOL_ARG)" DESTDIR=$(DESTDIR)$(OUTPUT) install