Linking with -lc or -lm crashes on Cygwin; filter out those libraries from

the LIBS variable.
This commit is contained in:
Peter Eisentraut 2000-09-29 13:36:50 +00:00
parent 52dda5ec05
commit 1e2eb210bc
1 changed files with 4 additions and 0 deletions

View File

@ -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 $<