diff options
author | jlam <jlam> | 2003-03-14 19:37:30 +0000 |
---|---|---|
committer | jlam <jlam> | 2003-03-14 19:37:30 +0000 |
commit | a771eb7968c94f0addf4db20c476555536382e51 (patch) | |
tree | 4ee2e06249d68477cf3fb68be1f095453bcec90d /lang/python21-pth | |
parent | f11a46ae0626751873aec65de2e0341f70f610e7 (diff) | |
download | pkgsrc-a771eb7968c94f0addf4db20c476555536382e51.tar.gz |
(1) Publicly export the value of _OPSYS_RPATH_NAME as RPATH_FLAG;
Makefiles simply need to use this value often, for better or for
worse.
(2) Create a new variable FIX_RPATH that lists variables that should
be cleansed of -R or -rpath values if ${_USE_RPATH} is "no". By
default, FIX_RPATH contains LIBS, X11_LDFLAGS, and LDFLAGS, and
additional variables may be appended from package Makefiles.
Diffstat (limited to 'lang/python21-pth')
-rw-r--r-- | lang/python21-pth/buildlink2.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lang/python21-pth/buildlink2.mk b/lang/python21-pth/buildlink2.mk index 471e831ced7..c113866d7d5 100644 --- a/lang/python21-pth/buildlink2.mk +++ b/lang/python21-pth/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.7 2002/10/13 07:16:51 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.8 2003/03/14 19:37:45 jlam Exp $ .if !defined(PYTHON21_BUILDLINK2_MK) PYTHON21_BUILDLINK2_MK= # defined @@ -25,7 +25,8 @@ BUILDLINK_CPPFLAGS.python21-pth+= \ -I${BUILDLINK_PREFIX.python21-pth}/include/python2p1 BUILDLINK_LDFLAGS.python21-pth+= \ -L${BUILDLINK_PREFIX.python21-pth}/lib/python2p1/config \ - -Wl,-R${BUILDLINK_PREFIX.python21-pth}/lib/python2p1/config + -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.python21-pth}/lib/python2p1/config +FIX_RPATH+= BUILDLINK_LDFLAGS.python21-pth BUILDLINK_TARGETS+= python21-pth-buildlink |