summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authortron <tron>2004-01-15 23:04:00 +0000
committertron <tron>2004-01-15 23:04:00 +0000
commited28ad73d624d68173962adc451ca63987d610b3 (patch)
tree8faf229f38acc35d5846e12dfdb38b2266ac4b08 /converters
parentd6e997523b4fc4b0ae951789b2f1091772388f5e (diff)
downloadpkgsrc-ed28ad73d624d68173962adc451ca63987d610b3.tar.gz
Don't use "-Wl" on platforms which define "_USE_RPATH" to "no". This
fixes build problems under Darwin.
Diffstat (limited to 'converters')
-rw-r--r--converters/libiconv/buildlink2.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/converters/libiconv/buildlink2.mk b/converters/libiconv/buildlink2.mk
index 977883e97cb..d5019d58c59 100644
--- a/converters/libiconv/buildlink2.mk
+++ b/converters/libiconv/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.11 2003/10/31 02:09:19 dmcmahill Exp $
+# $NetBSD: buildlink2.mk,v 1.12 2004/01/15 23:04:00 tron Exp $
.if !defined(ICONV_BUILDLINK2_MK)
ICONV_BUILDLINK2_MK= # defined
@@ -50,7 +50,9 @@ _BLNK_ICONV_LDFLAGS= # empty
BUILDLINK_TRANSFORM+= S:-liconv:
. endif
.endif
+.if ${_USE_RPATH} != no
BUILDLINK_LIBICONV_LDADD= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib
+.endif
BUILDLINK_LIBICONV_LDADD+= ${_BLNK_ICONV_LDFLAGS}
LDFLAGS+= ${BUILDLINK_LIBICONV_LDADD}