Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add rpath flag to LDFLAGS if supported.

Fixes PR pkg/49021

Bump PKGREVISION.
  • Loading branch information...
commit 48179f327be3df08179807f03fdd5ff92747b4b0 1 parent 9723364
obache authored
View
3  www/ap2-python/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.33 2014/06/10 15:22:17 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2014/07/20 03:07:05 obache Exp $
DISTNAME= mod_python-3.5.0
PKGNAME= ${APACHE_PKG_PREFIX}-${PYPKGPREFIX}-${DISTNAME:S/mod_//}
+PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= http://dist.modpython.org/dist/
EXTRACT_SUFX= .tgz
View
4 www/ap2-python/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.6 2014/02/17 17:20:28 adam Exp $
+$NetBSD: distinfo,v 1.7 2014/07/20 03:07:05 obache Exp $
SHA1 (mod_python-3.5.0.tgz) = 9208bb813172ab51d601d78e439ea552f676d2d1
RMD160 (mod_python-3.5.0.tgz) = 03315af0843892059a11758209f350c82164acc3
Size (mod_python-3.5.0.tgz) = 571403 bytes
+SHA1 (patch-configure) = 98dae04eaf0762c89190d3afd0f49c580e1f5039
+SHA1 (patch-configure.in) = 5ce62332d1381ef671e5ff1e3858b81d4d8eca01
SHA1 (patch-dist_version.sh) = 9f3dbf596238aa106e06ec1c8b27a90619ef4978
View
16 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")'`
View
16 www/ap2-python/patches/patch-configure.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure.in,v 1.1 2014/07/20 03:07:05 obache Exp $
+
+* Set RPATH if supported.
+
+--- configure.in.orig 2013-11-12 03:21:34.000000000 +0000
++++ configure.in
+@@ -212,6 +212,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")'`
Please sign in to comment.
Something went wrong with that request. Please try again.