pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Fix compilation warning in xlog.c
2+ messages / 2 participants
[nested] [flat]
* pgsql: Fix compilation warning in xlog.c
@ 2020-10-06 06:34 Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Paquier @ 2020-10-06 06:34 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Fix compilation warning in xlog.c
Oversight in 9d0bd95.
Reported-by: Andres Freund
Discussion: https://postgr.es/m/20201006023802.qqfi6m5bw5y77zql@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0a3c864c32751fd29d021929cf70af421fd27370
Modified Files
--------------
src/backend/access/transam/xlog.c | 2 --
1 file changed, 2 deletions(-)
^ permalink raw reply [nested|flat] 2+ messages in thread
* [PATCH] wip
@ 2022-09-13 17:55 Andres Freund <andres@anarazel.de>
0 siblings, 0 replies; 2+ messages in thread
From: Andres Freund @ 2022-09-13 17:55 UTC (permalink / raw)
---
configure | 5 +++++
configure.ac | 5 +++++
2 files changed, 10 insertions(+)
inline patch 1: configure, configure.ac (+10/-0 lines) download inline-1.patch
diff --git a/configure b/configure
index fd2a782454b..82fce7eccc4 100755
--- a/configure
+++ b/configure
@@ -7101,6 +7101,11 @@ if test x"$pgac_cv_prog_CXX_cxxflags__qvisibility_hidden" = x"yes"; then
fi
have_visibility_attribute=$pgac_cv_prog_CC_cflags__qvisibility_hidden
+ # Old xlc versions (<13.1) don't have support for -qvisibility. Use expfull to force
+ # all extension module symbols to be exported.
+ if test "$pgac_cv_prog_CC_cflags__qvisibility_hidden" != "yes"; then
+ CFLAGS_SL_MODULE='-Wl,-b,expfull'
+ fi
fi
if test "$have_visibility_attribute" = "yes"; then
diff --git a/configure.ac b/configure.ac
index 7792ae5bad3..93c015d6e0b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -592,6 +592,11 @@ elif test "$PORTNAME" = "aix"; then
PGAC_PROG_CC_VAR_OPT(CFLAGS_SL_MODULE, [-qvisibility=hidden])
PGAC_PROG_VARCXX_VARFLAGS_OPT(CXX, CXXFLAGS_SL_MODULE, [-qvisibility=hidden])
have_visibility_attribute=$pgac_cv_prog_CC_cflags__qvisibility_hidden
+ # Old xlc versions (<13.1) don't have support for -qvisibility. Use expfull to force
+ # all extension module symbols to be exported.
+ if test "$pgac_cv_prog_CC_cflags__qvisibility_hidden" != "yes"; then
+ CFLAGS_SL_MODULE='-Wl,-b,expfull'
+ fi
fi
if test "$have_visibility_attribute" = "yes"; then
--
2.37.3.542.gdd3f6c4cae
--mndcuvvpfuiopqcv--
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-09-13 17:55 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-06 06:34 pgsql: Fix compilation warning in xlog.c Michael Paquier <michael@paquier.xyz>
2022-09-13 17:55 [PATCH] wip Andres Freund <andres@anarazel.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox