summaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-01-15 23:04:00 +0000
committertron <tron@pkgsrc.org>2004-01-15 23:04:00 +0000
commit3f8c8f5d9aedadc0027c0d116119d03b9e1481d8 (patch)
tree8faf229f38acc35d5846e12dfdb38b2266ac4b08 /converters
parent3c0f880842b811f2b00ae786ff8d0dbe766d6584 (diff)
downloadpkgsrc-3f8c8f5d9aedadc0027c0d116119d03b9e1481d8.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}