diff options
Diffstat (limited to 'databases/postgresql10/Makefile.common')
-rw-r--r-- | databases/postgresql10/Makefile.common | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/databases/postgresql10/Makefile.common b/databases/postgresql10/Makefile.common index 53f43c0c6ba..b11554590e3 100644 --- a/databases/postgresql10/Makefile.common +++ b/databases/postgresql10/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.1 2017/10/23 20:33:49 adam Exp $ +# $NetBSD: Makefile.common,v 1.2 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. @@ -79,6 +79,14 @@ CONFIGURE_ENV+= MSGFMT=${TOOLS_PATH.msgfmt} 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 |