diff options
author | xantares <xantares09@hotmail.com> | 2015-03-10 10:49:17 +0100 |
---|---|---|
committer | xantares <xantares09@hotmail.com> | 2015-03-10 10:49:17 +0100 |
commit | cb7a22d445039ce96968f42a321977ffc61065cc (patch) | |
tree | 45362e90c925fb32243ec1063fb5d4b196491390 | |
parent | 6a6ebd39e522922aa493552961d4b599f1e83805 (diff) | |
download | dlfcn-win32-cb7a22d445039ce96968f42a321977ffc61065cc.tar.gz dlfcn-win32-cb7a22d445039ce96968f42a321977ffc61065cc.tar.bz2 dlfcn-win32-cb7a22d445039ce96968f42a321977ffc61065cc.zip |
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
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ | |||
4 | include config.mak | 4 | include config.mak |
5 | 5 | ||
6 | ifeq ($(BUILD_SHARED),yes) | 6 | ifeq ($(BUILD_SHARED),yes) |
7 | TARGETS += libdl.dll libdl.dll.a | 7 | TARGETS += libdl.dll |
8 | SHFLAGS += -Wl,--out-implib,libdl.dll.a | 8 | SHFLAGS += -Wl,--out-implib,libdl.dll.a |
9 | INSTALL += shared-install | 9 | INSTALL += shared-install |
10 | endif | 10 | endif |
@@ -30,7 +30,7 @@ libdl.a: $(LIB_OBJS) | |||
30 | $(AR) cru $@ $^ | 30 | $(AR) cru $@ $^ |
31 | $(RANLIB) libdl.a | 31 | $(RANLIB) libdl.a |
32 | 32 | ||
33 | libdl.dll libdl.dll.a: $(LIB_OBJS) | 33 | libdl.dll: $(LIB_OBJS) |
34 | $(CC) $(SHFLAGS) -shared -o $@ $^ | 34 | $(CC) $(SHFLAGS) -shared -o $@ $^ |
35 | 35 | ||
36 | libdl.lib: libdl.dll | 36 | libdl.lib: libdl.dll |