Restore the passing of LDFLAGS when building libraries

This commit is contained in:
Christophe de Dinechin 2017-11-17 17:00:54 +01:00
parent cb72543408
commit 99de9424db
2 changed files with 5 additions and 5 deletions

View File

@ -74,9 +74,9 @@ 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_$*) $(LINK_INPUTS)&& $(RANLIB) $@
MAKE_DLL= $(LD) -shared $(LDFLAGS_$*) $(LINK_CMDLINE) -o $@
MAKE_EXE= $(LD) $(LDFLAGS_$*) $(LINK_CMDLINE) -o $@
MAKE_LIB= $(AR) $@ $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS)&& $(RANLIB) $@
MAKE_DLL= $(LD) -shared $(LDFLAGS) $(LDFLAGS_$*) $(LINK_CMDLINE) -o $@
MAKE_EXE= $(LD) $(LDFLAGS) $(LDFLAGS_$*) $(LINK_CMDLINE) -o $@
LINK_DIR_OPT= -L
LINK_LIB_OPT= -l

View File

@ -28,8 +28,8 @@ include $(BUILD)config.gnu.mk
CFLAGS_ssev4= -msse4
DLL_EXT= .dylib
MAKE_LIB= $(LIBTOOL) -static $(LINK_INPUTS) -o $@
MAKE_DLL= $(LD) -shared $(LINK_INPUTS) -o $@
MAKE_LIB= $(LIBTOOL) -static $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS) -o $@
MAKE_DLL= $(LD) -shared $(LDFLAGS) $(LDFLAGS_$*) $(LINK_INPUTS) -o $@
# On MacOSX, we will use basic frameworks e.g. for string and filesystem functions