From 49adc492f5469c11beccbd43c8b3bfd1f1ef581f Mon Sep 17 00:00:00 2001 From: Christophe de Dinechin Date: Mon, 27 Nov 2017 18:55:58 +0100 Subject: [PATCH] Do not add LDFLAGS when building static libraries --- config.gnu.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.gnu.mk b/config.gnu.mk index 265225b..c133699 100644 --- a/config.gnu.mk +++ b/config.gnu.mk @@ -74,7 +74,7 @@ MAKE_CC= $(CC) $(CFLAGS) $(CPPFLAGS_$*) $(CFLAGS_$*) -c $< -o $@ $( MAKE_CXX= $(CXX) $(CXXFLAGS) $(CPPFLAGS_$*) $(CXXFLAGS_$*) -c $< -o $@ $(DEPFLAGS) MAKE_AS= $(CC) $(CFLAGS) $(CPPFLAGS_$*) $(CFLAGS_$*) -c $< -o $@ $(DEPFLAGS) MAKE_OBJDIR= mkdir -p $* && touch $@ -MAKE_LIB= $(AR) $@ $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS)&& $(RANLIB) $@ +MAKE_LIB= $(AR) $@ $(LINK_INPUTS)&& $(RANLIB) $@ MAKE_DLL= $(LD) -shared $(LDFLAGS) $(LDFLAGS_$*) $(LINK_CMDLINE) -o $@ MAKE_EXE= $(LD) $(LDFLAGS) $(LDFLAGS_$*) $(LINK_CMDLINE) -o $@