aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-09-29 13:36:50 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-09-29 13:36:50 +0000
commit1e2eb210bc04b82a9a8e08364cdbf265440e0084 (patch)
tree05ff2cc10ea850bdf199fb47a9e290ed3bdb45af /src
parent52dda5ec05d5c0acfd47644c25068740f67745d4 (diff)
downloadpostgresql-1e2eb210bc04b82a9a8e08364cdbf265440e0084.tar.gz
postgresql-1e2eb210bc04b82a9a8e08364cdbf265440e0084.zip
Linking with -lc or -lm crashes on Cygwin; filter out those libraries from
the LIBS variable.
Diffstat (limited to 'src')
-rw-r--r--src/makefiles/Makefile.win4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/makefiles/Makefile.win b/src/makefiles/Makefile.win
index 2f4d723edd6..ddc442d491f 100644
--- a/src/makefiles/Makefile.win
+++ b/src/makefiles/Makefile.win
@@ -1,3 +1,4 @@
+# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.5 2000/09/29 13:36:50 petere Exp $
LDFLAGS+= -g
DLLTOOL= dlltool
DLLWRAP= dllwrap
@@ -6,6 +7,9 @@ MK_NO_LORDER=true
MAKE_DLL=true
#MAKE_DLL=false
SHLIB_LINK=$(DLLLIBS)
+# linking with -lm or -lc causes program to crash
+# (see http://sources.redhat.com/cygwin/faq/faq.html#SEC110)
+LIBS:=$(filter-out -lm -lc, $(LIBS))
%.dll: %.o
$(DLLTOOL) --export-all --output-def $*.def $<