aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-11 17:15:03 -0700
committerTimothy Gu <timothygu99@gmail.com>2015-03-11 17:15:03 -0700
commit9e5c2eb2168628a70ed2bbe3564e565f78f0626b (patch)
treeeb190dc4894411a3ede5c461228e2129572fd527
parente69d90ee0e022bbe4718103ea3942b6e675b382b (diff)
parentcb7a22d445039ce96968f42a321977ffc61065cc (diff)
downloaddlfcn-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--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f40ccf8..2b03051 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ include config.mak
5CFLAGS=-Wall -O3 -fomit-frame-pointer 5CFLAGS=-Wall -O3 -fomit-frame-pointer
6 6
7ifeq ($(BUILD_SHARED),yes) 7ifeq ($(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
11endif 11endif
@@ -31,7 +31,7 @@ libdl.a: $(LIB_OBJS)
31 $(AR) cru $@ $^ 31 $(AR) cru $@ $^
32 $(RANLIB) libdl.a 32 $(RANLIB) libdl.a
33 33
34libdl.dll libdl.dll.a: $(LIB_OBJS) 34libdl.dll: $(LIB_OBJS)
35 $(CC) $(SHFLAGS) -shared -o $@ $^ 35 $(CC) $(SHFLAGS) -shared -o $@ $^
36 36
37libdl.lib: libdl.dll 37libdl.lib: libdl.dll