aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2012-11-08 18:50:48 +0100
committerGuenter Knauf <lists@gknw.net>2012-11-08 18:50:48 +0100
commitc70c1a22d26865c3c908e2409c04bc9f01c41efb (patch)
tree36ee28564dad705a5dc487009e634ae60bd227f2 /lib
parent5a4f6413d19f47a95c9d736ec90bd96c72d00c5f (diff)
Added .def file to output.
Requested by Johnny Luong on the libcurl list.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.m327
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 661cc649a..3e4e35a94 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -273,8 +273,9 @@ $(libcurl_a_LIBRARY): $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES)
$(libcurl_dll_LIBRARY): $(libcurl_a_OBJECTS) $(RESOURCE) $(libcurl_dll_DEPENDENCIES)
@$(call DEL, $@)
- $(CC) $(LDFLAGS) -shared -Wl,--out-implib,$(libcurl_dll_a_LIBRARY) \
- -o $@ $(libcurl_a_OBJECTS) $(RESOURCE) $(DLL_LIBS)
+ $(CC) $(LDFLAGS) -shared -o $@ \
+ -Wl,--output-def,$(@:.dll=.def),--out-implib,$(libcurl_dll_a_LIBRARY) \
+ $(libcurl_a_OBJECTS) $(RESOURCE) $(DLL_LIBS)
%.o: %.c $(PROOT)/include/curl/curlbuild.h
$(CC) $(INCLUDES) $(CFLAGS) -c $<
@@ -289,7 +290,7 @@ endif
@$(call DEL, $(libcurl_a_OBJECTS) $(RESOURCE))
distclean vclean: clean
- @$(call DEL, $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_dll_a_LIBRARY))
+ @$(call DEL, $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_dll_LIBRARY:.dll=.def) $(libcurl_dll_a_LIBRARY))
$(PROOT)/include/curl/curlbuild.h:
@echo Creating $@