Commit cb7a22d445039ce96968f42a321977ffc61065cc

xantares 2015-03-10T10:49:17

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

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