TP_13 exo2: filter out the local library name for cygwin build
authorJerome Benoit <jerome.benoit@sap.com>
Fri, 12 May 2017 21:57:40 +0000 (23:57 +0200)
committerJerome Benoit <jerome.benoit@sap.com>
Fri, 12 May 2017 21:57:40 +0000 (23:57 +0200)
Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
TP_13/exo2/Makefile

index 8dab395969d92bf4cbae75d57106edbeeed5f7b5..a2a7103286760cd6abfffb90b2459ea4660bc671 100644 (file)
@@ -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