From 82ddcc080578f7de6cef81d687d2e075c78c5832 Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 20 Jul 2014 03:07:05 +0000 Subject: Add rpath flag to LDFLAGS if supported. Fixes PR pkg/49021 Bump PKGREVISION. --- www/ap2-python/patches/patch-configure | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 www/ap2-python/patches/patch-configure (limited to 'www/ap2-python/patches/patch-configure') diff --git a/www/ap2-python/patches/patch-configure b/www/ap2-python/patches/patch-configure new file mode 100644 index 00000000000..6eff72bc85f --- /dev/null +++ b/www/ap2-python/patches/patch-configure @@ -0,0 +1,16 @@ +$NetBSD: patch-configure,v 1.1 2014/07/20 03:07:05 obache Exp $ + +* Set RPATH if supported. + +--- configure.orig 2013-11-12 03:21:34.000000000 +0000 ++++ configure +@@ -3389,6 +3389,9 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-fr + # this directory may contain the .so library, our preference, list 1st + LDFLAGS1=`${PYTHON_BIN} -c 'import distutils.sysconfig; \ + print("-L" + distutils.sysconfig.get_config_var("LIBDIR"))'` ++ if test -n "${COMPILER_RPATH_FLAG}"; then ++ LDFLAGS1="${LDFLAGS1} ${COMPILER_RPATH_FLAG}${LDFLAGS1}" ++ fi + LDFLAGS2=`${PYTHON_BIN} -c 'import distutils.sysconfig; \ + print("-L" + distutils.sysconfig.get_python_lib(plat_specific=1, \ + standard_lib=1) +"/config")'` -- cgit v1.2.3