From cb7a22d445039ce96968f42a321977ffc61065cc Mon Sep 17 00:00:00 2001 From: xantares Date: Tue, 10 Mar 2015 10:49:17 +0100 Subject: only one rule to generate shared/export lib or else the rule is applied to libdl.dll AND libdl.dll.a: x86_64-w64-mingw32-gcc -Wl,--out-implib,libdl.dll.a -shared -o libdl.dll dlfcn.o x86_64-w64-mingw32-gcc -Wl,--out-implib,libdl.dll.a -shared -o libdl.dll.a dlfcn.o --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4d11de8..a544158 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ include config.mak ifeq ($(BUILD_SHARED),yes) - TARGETS += libdl.dll libdl.dll.a + TARGETS += libdl.dll SHFLAGS += -Wl,--out-implib,libdl.dll.a INSTALL += shared-install endif @@ -30,7 +30,7 @@ libdl.a: $(LIB_OBJS) $(AR) cru $@ $^ $(RANLIB) libdl.a -libdl.dll libdl.dll.a: $(LIB_OBJS) +libdl.dll: $(LIB_OBJS) $(CC) $(SHFLAGS) -shared -o $@ $^ libdl.lib: libdl.dll -- cgit v1.2.3-55-g6feb