Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita33245a

Browse files
committed
Don't build static libraries on Cygwin
Cygwin has been building and linking against static libraries. Althougha bug this has been relatively harmless until now, when this has causederrors due to changes in the way we build certain libraries. So thispatch makes things work the way we always intended, namely that we wouldlink against the dynamic libraries (cygpq.dll etc.) and just not buildthe static libraries. The downstream packagers have been doing this forsome time, so this just aligns with their practice.Extracted from a patch by Marco Atzeri, with a suggestion from Tom Lane.Discussion:https://postgr.es/m/1056.1538235347@sss.pgh.pa.us
1 parent6e35939 commita33245a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/Makefile.shlib

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,11 @@ ifeq ($(PORTNAME), cygwin)
353353
# Cygwin case
354354

355355
$(shlib): $(OBJS) | $(SHLIB_PREREQS)
356-
$(CC) $(CFLAGS) -shared -o $@ $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) $(LDAP_LIBS_BE)
356+
$(CC) $(CFLAGS) -shared -o $@-Wl,--out-implib=$(stlib) $(OBJS) $(LDFLAGS) $(LDFLAGS_SL) $(SHLIB_LINK) $(LIBS) $(LDAP_LIBS_BE)
357357

358-
$(stlib): $(OBJS) | $(SHLIB_PREREQS)
359-
rm -f $@
360-
$(LINK.static) $@ $^
361-
$(RANLIB) $@
358+
# see notes in src/backend/parser/Makefile about use of this type of rule
359+
$(stlib): $(shlib)
360+
touch $@
362361

363362
else
364363

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp