diff options
author | Timothy Gu <timothygu99@gmail.com> | 2015-03-11 17:15:03 -0700 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2015-03-11 17:15:03 -0700 |
commit | 9e5c2eb2168628a70ed2bbe3564e565f78f0626b (patch) | |
tree | eb190dc4894411a3ede5c461228e2129572fd527 | |
parent | e69d90ee0e022bbe4718103ea3942b6e675b382b (diff) | |
parent | cb7a22d445039ce96968f42a321977ffc61065cc (diff) | |
download | dlfcn-win32-9e5c2eb2168628a70ed2bbe3564e565f78f0626b.tar.gz dlfcn-win32-9e5c2eb2168628a70ed2bbe3564e565f78f0626b.tar.bz2 dlfcn-win32-9e5c2eb2168628a70ed2bbe3564e565f78f0626b.zip |
Merge pull request #7 from xantares/patch-3
only one rule to generate shared/export lib
Fixes #1
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,7 +5,7 @@ include config.mak | |||
5 | CFLAGS=-Wall -O3 -fomit-frame-pointer | 5 | CFLAGS=-Wall -O3 -fomit-frame-pointer |
6 | 6 | ||
7 | ifeq ($(BUILD_SHARED),yes) | 7 | ifeq ($(BUILD_SHARED),yes) |
8 | TARGETS += libdl.dll libdl.dll.a | 8 | TARGETS += libdl.dll |
9 | SHFLAGS += -Wl,--out-implib,libdl.dll.a | 9 | SHFLAGS += -Wl,--out-implib,libdl.dll.a |
10 | INSTALL += shared-install | 10 | INSTALL += shared-install |
11 | endif | 11 | endif |
@@ -31,7 +31,7 @@ libdl.a: $(LIB_OBJS) | |||
31 | $(AR) cru $@ $^ | 31 | $(AR) cru $@ $^ |
32 | $(RANLIB) libdl.a | 32 | $(RANLIB) libdl.a |
33 | 33 | ||
34 | libdl.dll libdl.dll.a: $(LIB_OBJS) | 34 | libdl.dll: $(LIB_OBJS) |
35 | $(CC) $(SHFLAGS) -shared -o $@ $^ | 35 | $(CC) $(SHFLAGS) -shared -o $@ $^ |
36 | 36 | ||
37 | libdl.lib: libdl.dll | 37 | libdl.lib: libdl.dll |