From 391a158fd1dfa4174fda64881682717c5523c9c6 Mon Sep 17 00:00:00 2001 From: fhajny Date: Fri, 10 Nov 2017 14:47:41 +0000 Subject: 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. --- databases/postgresql92/Makefile.common | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'databases/postgresql92') diff --git a/databases/postgresql92/Makefile.common b/databases/postgresql92/Makefile.common index 52c986dee40..2719ca12b0f 100644 --- a/databases/postgresql92/Makefile.common +++ b/databases/postgresql92/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.31 2017/09/04 19:33:43 adam Exp $ +# $NetBSD: Makefile.common,v 1.32 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. @@ -76,6 +76,14 @@ CONFIGURE_ARGS+= --without-zlib # procfs and largefile. CONFIGURE_ENV.SunOS+= ac_cv_header_sys_ucred_h=no +# 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. CONFIGURE_ARGS.MirBSD+= --disable-thread-safety CONFIGURE_ARGS.OpenBSD+= --disable-thread-safety -- cgit v1.2.3