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

Commita6b88d6

Browse files
committed
Fix link failures due to snprintf/strerror changes.
snprintf.c requires isnan(), which requires -lm on some platforms.libpq never bothered with -lm before, but now it needs it.strerror.c tries to translate a string or two, which requires -lintl.We'd managed never to need that anywhere in ecpg/pgtypeslib/ before,but now we do.Per buildfarm and a report from Peter Eisentraut.Discussion:https://postgr.es/m/20180926190934.ea4xvzhkayuw7gkx@alap3.anarazel.deDiscussion:https://postgr.es/m/f67b5008-9f01-057f-2bff-558cb53af851@2ndquadrant.com
1 parent0320dda commita6b88d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/interfaces/ecpg/pgtypeslib/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ override CFLAGS += $(PTHREAD_CFLAGS)
2525
# Need to recompile any libpgport object files
2626
LIBS :=$(filter-out -lpgport,$(LIBS))
2727

28-
SHLIB_LINK +=$(filter -lm,$(LIBS))
28+
SHLIB_LINK +=$(filter -lintl -lm,$(LIBS))
2929

3030
SHLIB_EXPORTS = exports.txt
3131

‎src/interfaces/libpq/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ endif
7878
# shared library link. (The order in which you list them here doesn't
7979
# matter.)
8080
ifneq ($(PORTNAME), win32)
81-
SHLIB_LINK +=$(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lgssapi_krb5 -lgss -lgssapi -lssl -lsocket -lnsl -lresolv -lintl,$(LIBS))$(LDAP_LIBS_FE)$(PTHREAD_LIBS)
81+
SHLIB_LINK +=$(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lgssapi_krb5 -lgss -lgssapi -lssl -lsocket -lnsl -lresolv -lintl -lm,$(LIBS))$(LDAP_LIBS_FE)$(PTHREAD_LIBS)
8282
else
83-
SHLIB_LINK +=$(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lgssapi32 -lssl -lsocket -lnsl -lresolv -lintl$(PTHREAD_LIBS),$(LIBS))$(LDAP_LIBS_FE)
83+
SHLIB_LINK +=$(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lgssapi32 -lssl -lsocket -lnsl -lresolv -lintl-lm$(PTHREAD_LIBS),$(LIBS))$(LDAP_LIBS_FE)
8484
endif
8585
ifeq ($(PORTNAME), win32)
8686
SHLIB_LINK += -lshell32 -lws2_32 -lsecur32$(filter -leay32 -lssleay32 -lcomerr32 -lkrb5_32,$(LIBS))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp