summaryrefslogtreecommitdiff
path: root/databases/postgresql95
diff options
context:
space:
mode:
authorfhajny <fhajny@pkgsrc.org>2017-11-10 14:47:41 +0000
committerfhajny <fhajny@pkgsrc.org>2017-11-10 14:47:41 +0000
commit391a158fd1dfa4174fda64881682717c5523c9c6 (patch)
tree7658334b95e417c8a81026469b20567705b9d774 /databases/postgresql95
parent14827bee44377938a3e6592143af0016226ff1e5 (diff)
downloadpkgsrc-391a158fd1dfa4174fda64881682717c5523c9c6.tar.gz
Make sure the --as-needed linker arg does not leak into the pgxs Makefiles
on Darwin and SunOS where it's not supported. Bump PKGREVISION on *-client.
Diffstat (limited to 'databases/postgresql95')
-rw-r--r--databases/postgresql95/Makefile.common10
1 files changed, 9 insertions, 1 deletions
diff --git a/databases/postgresql95/Makefile.common b/databases/postgresql95/Makefile.common
index 59cbd53d31b..69c8bc07147 100644
--- a/databases/postgresql95/Makefile.common
+++ b/databases/postgresql95/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.12 2017/09/04 19:33:43 adam Exp $
+# $NetBSD: Makefile.common,v 1.13 2017/11/10 14:47:41 fhajny Exp $
#
# This Makefile fragment is included by all PostgreSQL packages built from
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
@@ -77,6 +77,14 @@ CONFIGURE_ARGS+= --without-zlib
CONFIGURE_ENV+= ac_cv_header_sys_ucred_h=no
.endif
+# pkgsrc silently filters the --as-needed linker arg, but that makes
+# it leak into the pgxs Makefiles and compromises manual building
+# against PostgreSQL files installed. Disable it here to prevent
+# that from happening.
+.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin"
+CONFIGURE_ENV+= pgac_cv_prog_cc_ldflags__Wl___as_needed=no
+.endif
+
# configure fails on OpenBSD and MirBSD if thread safety is enabled.
.if ${OPSYS} == "OpenBSD" || ${OPSYS} == "MirBSD"
CONFIGURE_ARGS+= --disable-thread-safety