Skip to content

Commit 1e2eb21

Browse files
committed
Linking with -lc or -lm crashes on Cygwin; filter out those libraries from
the LIBS variable.
1 parent 52dda5e commit 1e2eb21

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/makefiles/Makefile.win

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# $Header: /cvsroot/pgsql/src/makefiles/Attic/Makefile.win,v 1.5 2000/09/29 13:36:50 petere Exp $
12
LDFLAGS+= -g
23
DLLTOOL= dlltool
34
DLLWRAP= dllwrap
@@ -6,6 +7,9 @@ MK_NO_LORDER=true
67
MAKE_DLL=true
78
#MAKE_DLL=false
89
SHLIB_LINK=$(DLLLIBS)
10+
# linking with -lm or -lc causes program to crash
11+
# (see http://sources.redhat.com/cygwin/faq/faq.html#SEC110)
12+
LIBS:=$(filter-out -lm -lc, $(LIBS))
913

1014
%.dll: %.o
1115
$(DLLTOOL) --export-all --output-def $*.def $<

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy