From a0020ab00f68b3753637f348be72ab037bfee9ef Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 7 Mar 2003 05:59:48 +0000 Subject: Use BUILDLINK_LIBICONV_LDADD instead of hard-coding "-liconv". This should fix the problem where gettext-lib on certain OSes that already have iconv functions in libc don't need to link against libiconv. --- devel/gettext-lib/buildlink2.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'devel') diff --git a/devel/gettext-lib/buildlink2.mk b/devel/gettext-lib/buildlink2.mk index fe38a46d27e..9bb04b11e73 100644 --- a/devel/gettext-lib/buildlink2.mk +++ b/devel/gettext-lib/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.18 2003/01/05 22:16:53 jlam Exp $ +# $NetBSD: buildlink2.mk,v 1.19 2003/03/07 05:59:48 jlam Exp $ .if !defined(GETTEXT_BUILDLINK2_MK) GETTEXT_BUILDLINK2_MK= # defined @@ -91,7 +91,7 @@ _BLNK_LIBINTL+= -L${BUILDLINK_PREFIX.gettext}/lib _BLNK_LIBINTL+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib _BLNK_LIBINTL+= -lintl . if ${_GETTEXT_NEEDS_ICONV} == "YES" -_BLNK_LIBINTL+= -liconv +_BLNK_LIBINTL+= ${BUILDLINK_LIBICONV_LDADD} . endif .else . if ${_BLNK_LIBINTL_FOUND} == "YES" -- cgit v1.2.3