diff options
author | obache <obache@pkgsrc.org> | 2014-07-20 03:07:05 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2014-07-20 03:07:05 +0000 |
commit | 82ddcc080578f7de6cef81d687d2e075c78c5832 (patch) | |
tree | 26c4fe1df6e854e015def182b3c7c3cb16a47ae5 /www/ap2-python/patches/patch-configure | |
parent | c304bebb73c196b99d227e3de140facbf9ebf949 (diff) | |
download | pkgsrc-82ddcc080578f7de6cef81d687d2e075c78c5832.tar.gz |
Add rpath flag to LDFLAGS if supported.
Fixes PR pkg/49021
Bump PKGREVISION.
Diffstat (limited to 'www/ap2-python/patches/patch-configure')
-rw-r--r-- | www/ap2-python/patches/patch-configure | 16 |
1 files changed, 16 insertions, 0 deletions
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")'` |