diff options
author | jlam <jlam@pkgsrc.org> | 2003-03-14 19:37:30 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-03-14 19:37:30 +0000 |
commit | 3ef633718c6eecbd852195de9329d45632a10352 (patch) | |
tree | 4ee2e06249d68477cf3fb68be1f095453bcec90d /lang/perl58/Makefile | |
parent | 1940384395085677c2036358dfcccfad791a4dd8 (diff) | |
download | pkgsrc-3ef633718c6eecbd852195de9329d45632a10352.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/perl58/Makefile')
-rw-r--r-- | lang/perl58/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/perl58/Makefile b/lang/perl58/Makefile index a9ca871f3fb..faf55e40465 100644 --- a/lang/perl58/Makefile +++ b/lang/perl58/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2003/02/27 04:32:33 grant Exp $ +# $NetBSD: Makefile,v 1.11 2003/03/14 19:37:43 jlam Exp $ .include "Makefile.common" @@ -80,12 +80,13 @@ LOCINCPATH= ${LOCALBASE}/include # flags to the link command in the right way. # .if ${OBJECT_FMT} == "a.out" -LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/-R/g} +LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/${RPATH_FLAG}/g} .elif ${OBJECT_FMT} == "ELF" -LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/-Wl,-R/g} +LOCLIBRPATHFLAGS= ${LOCLIBPATH:S/^/-Wl,${RPATH_FLAG}/g} .else LOCLIBRPATHFLAGS= # empty .endif +FIX_RPATH+= LOCLIBRPATHFLAGS .if defined(LIBSWANTED.${OPSYS}) CONFIGURE_ARGS+= -Dlibswanted="${LIBSWANTED.${OPSYS}}" |