From: Jerome Benoit Date: Fri, 12 May 2017 21:57:40 +0000 (+0200) Subject: TP_13 exo2: filter out the local library name for cygwin build X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=commitdiff_plain;h=5c7b04b0e5af942452d7b3b74d95cc3fdc0636a0 TP_13 exo2: filter out the local library name for cygwin build Signed-off-by: Jerome Benoit --- diff --git a/TP_13/exo2/Makefile b/TP_13/exo2/Makefile index 8dab395..a2a7103 100644 --- a/TP_13/exo2/Makefile +++ b/TP_13/exo2/Makefile @@ -80,7 +80,7 @@ LDLIBS := $(filter-out -ltinfo,$(LDLIBS)) BINARY_SUFFIX := .exe DLIB_SUFFIX := .dll # do not archive external libraries -CYGWIN_LDLIBS_NOARCHIVE := $(LDLIBS) +CYGWIN_LDLIBS_NOARCHIVE := $(filter-out -l$(BINARY_NAME),$(LDLIBS)) CYGWIN_LIBLDFLAGS := -Wl,--out-implib=$(LIBRARY_PATH)/$(DLIB_PREFIX)$(LIBRARY_NAME)$(DLIB_SUFFIX).a \ -Wl,--export-all-symbols \ -Wl,--enable-auto-import