diff options
author | wiz <wiz> | 2002-02-21 12:08:32 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-02-21 12:08:32 +0000 |
commit | b47b7db45c1e4aa1f5b4d4d39ca5a889ed0b97e0 (patch) | |
tree | 2c08e2266392e4bca9367be2147f2d7437a3f3de /devel | |
parent | 86fecd0da57ae7105230d6160d5433d58f59fb7d (diff) | |
download | pkgsrc-b47b7db45c1e4aa1f5b4d4d39ca5a889ed0b97e0.tar.gz |
Only use -R if the linker supports it. Patch by Rob Latham in pkg/15652.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/gettext-lib/buildlink.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/gettext-lib/buildlink.mk b/devel/gettext-lib/buildlink.mk index 1dd33a7cd1c..2ad97f2e98b 100644 --- a/devel/gettext-lib/buildlink.mk +++ b/devel/gettext-lib/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.12 2001/10/26 19:18:36 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.13 2002/02/21 12:08:32 wiz Exp $ # # This Makefile fragment is included by packages that use gettext. # @@ -53,8 +53,10 @@ BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gettext} # INTLLIBS= -L${BUILDLINK_DIR}/lib .if ${_NEED_GNU_GETTEXT} == "YES" +.if ${_USE_RPATH} == "yes" INTLLIBS+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib .endif +.endif INTLLIBS+= -lintl LIBS+= ${INTLLIBS} CONFIGURE_ENV+= INTLLIBS="${INTLLIBS}" |