]> granicus.if.org Git - pgbouncer/commitdiff
dlltool seems to need --export-all-symbols to make .def file
authorMarko Kreen <markokr@gmail.com>
Thu, 18 Dec 2008 00:21:56 +0000 (00:21 +0000)
committerMarko Kreen <markokr@gmail.com>
Thu, 18 Dec 2008 00:21:56 +0000 (00:21 +0000)
Makefile

index 2122c2e5591cdf4ae5dc4e355604499fe49f7954..0c80295fad40b59bb942b3d433c771d26db22d62 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -62,6 +62,8 @@ dll = $(builddir)/pgbevent.dll
 dlldef = $(builddir)/lib/pgbevent.def
 dllobjs = $(builddir)/lib/eventmsg.o $(builddir)/lib/pgbevent.o
 
+DEFFLAGS = --export-all-symbols
+
 endif
 
 # Quiet by default, 'make V=1' shows commands
@@ -193,7 +195,7 @@ $(builddir)/lib/eventmsg.o: $(srcdir)/win32/eventmsg.rc
 
 $(dlldef): $(dllobjs)
        $(E) "  DLLTOOL" $@
-       $(Q) $(DLLTOOL) --output-def $@ $(dllobjs)
+       $(Q) $(DLLTOOL) $(DEFFLAGS) --output-def $@ $(dllobjs)
 
 # final executable
 $(dll): $(builddir)/config.mak $(dllobjs) $(dlldef)