diff options
author | joerg <joerg> | 2014-09-23 19:39:17 +0000 |
---|---|---|
committer | joerg <joerg> | 2014-09-23 19:39:17 +0000 |
commit | dae55ddf180220475dfa0a1f9037927c91795ec3 (patch) | |
tree | 177d67425fcaffa56407e471d994b72dc8c3682b /geography | |
parent | 45d8aa5d66a8a6534131f3e4c024c0039392d1dc (diff) | |
download | pkgsrc-dae55ddf180220475dfa0a1f9037927c91795ec3.tar.gz |
Add rpath for libpython.
Diffstat (limited to 'geography')
-rw-r--r-- | geography/proj-swig/distinfo | 3 | ||||
-rw-r--r-- | geography/proj-swig/patches/patch-configure | 21 |
2 files changed, 23 insertions, 1 deletions
diff --git a/geography/proj-swig/distinfo b/geography/proj-swig/distinfo index a41a1ad60e2..d0bbef026f8 100644 --- a/geography/proj-swig/distinfo +++ b/geography/proj-swig/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.3 2012/08/27 07:18:02 dholland Exp $ +$NetBSD: distinfo,v 1.4 2014/09/23 19:39:17 joerg Exp $ SHA1 (proj-swig-0.02.tar.gz) = 991bf5d2d4150c446a065f52cb257ba768a850f3 RMD160 (proj-swig-0.02.tar.gz) = 071579a0573ec53377b20882f14faeba5d5e4a7c Size (proj-swig-0.02.tar.gz) = 324428 bytes +SHA1 (patch-configure) = 06a516fd650feb882c8ea6ffc4fe47d492d34aff SHA1 (patch-proj_i) = 83a18f6e7d22830c9d3fb4ed66718376f046ed51 diff --git a/geography/proj-swig/patches/patch-configure b/geography/proj-swig/patches/patch-configure new file mode 100644 index 00000000000..df12e392fbe --- /dev/null +++ b/geography/proj-swig/patches/patch-configure @@ -0,0 +1,21 @@ +$NetBSD: patch-configure,v 1.1 2014/09/23 19:39:17 joerg Exp $ + +--- configure.orig 2014-09-23 19:10:20.000000000 +0000 ++++ configure +@@ -19545,14 +19545,14 @@ EOD` + then + # use the official shared library + ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"` +- PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library" ++ PYTHON_LDFLAGS="-Wl,-rpath,$ac_python_libdir -L$ac_python_libdir -l$ac_python_library" + else + # old way: use libpython from python_configdir + ac_python_libdir=`$PYTHON -c \ + "from distutils.sysconfig import get_python_lib as f; \ + import os; \ + print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"` +- PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version" ++ PYTHON_LDFLAGS="-Wl,-rpath,$ac_python_libdir -L$ac_python_libdir -lpython$ac_python_version" + fi + + if test -z "PYTHON_LDFLAGS"; then |