diff options
author | tron <tron@pkgsrc.org> | 2004-01-15 23:04:00 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-01-15 23:04:00 +0000 |
commit | 1c3192189ff2992ccc49456c48886f5b1be5de08 (patch) | |
tree | 8faf229f38acc35d5846e12dfdb38b2266ac4b08 /devel/gettext-lib | |
parent | c966b11bfb9f31f5fd5d3b250c3a7164266313a6 (diff) | |
download | pkgsrc-1c3192189ff2992ccc49456c48886f5b1be5de08.tar.gz |
Don't use "-Wl" on platforms which define "_USE_RPATH" to "no". This
fixes build problems under Darwin.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r-- | devel/gettext-lib/buildlink2.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/devel/gettext-lib/buildlink2.mk b/devel/gettext-lib/buildlink2.mk index 3fcb1c12796..c60b8cbe0e9 100644 --- a/devel/gettext-lib/buildlink2.mk +++ b/devel/gettext-lib/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.24 2003/08/02 09:25:44 wiz Exp $ +# $NetBSD: buildlink2.mk,v 1.25 2004/01/15 23:04:00 tron Exp $ .if !defined(GETTEXT_BUILDLINK2_MK) GETTEXT_BUILDLINK2_MK= # defined @@ -88,7 +88,9 @@ _BLNK_LIBINTL= # empty .if ${_NEED_GNU_GETTEXT} == "YES" _BLNK_INCINTL+= -I${BUILDLINK_PREFIX.gettext}/include _BLNK_LIBINTL+= -L${BUILDLINK_PREFIX.gettext}/lib +.if ${_USE_RPATH} != no _BLNK_LIBINTL+= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.gettext}/lib +.endif _BLNK_LIBINTL+= -lintl . if ${_GETTEXT_NEEDS_ICONV} == "YES" _BLNK_LIBINTL+= ${BUILDLINK_LIBICONV_LDADD} |