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 /print/ghostscript-nox11 | |
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 'print/ghostscript-nox11')
-rw-r--r-- | print/ghostscript-nox11/Makefile.common | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/print/ghostscript-nox11/Makefile.common b/print/ghostscript-nox11/Makefile.common index c16c507d223..98c56c2d349 100644 --- a/print/ghostscript-nox11/Makefile.common +++ b/print/ghostscript-nox11/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.42 2002/12/23 16:27:12 cjep Exp $ +# $NetBSD: Makefile.common,v 1.43 2003/03/14 19:37:54 jlam Exp $ DISTNAME= ghostscript-${GS_VERS} GS_VERS= 6.01 @@ -138,7 +138,7 @@ ALL_TARGET= std . include "../../lang/gcc/buildlink2.mk" .endif .if defined(ZOULARISBASE) -LDFLAGS+= -L${ZOULARISBASE}/lib -Wl,-R${ZOULARISBASE}/lib +LDFLAGS+= -L${ZOULARISBASE}/lib -Wl,${RPATH_FLAG}${ZOULARISBASE}/lib .endif .if defined(PAPERSIZE) && (${PAPERSIZE} == "A4" || ${PAPERSIZE} == "a4") @@ -155,7 +155,7 @@ MAKE_FLAGS+= GS_DISPLAY_DEVICE="${GS_DISPLAY_DEVICE}" MAKE_FLAGS+= XINCLUDE= XLIBDIRS= XLIBS="${XLIBS}" .if ${OPSYS} == "SunOS" -LDFLAGS+= -L${LOCALBASE}/bsd/lib -Wl,-R${LOCALBASE}/bsd/lib +LDFLAGS+= -L${LOCALBASE}/bsd/lib -Wl,${RPATH_FLAG}${LOCALBASE}/bsd/lib .endif # Define whether this platform has floating point hardware: |