diff options
author | jmc <jmc> | 2003-08-18 03:37:47 +0000 |
---|---|---|
committer | jmc <jmc> | 2003-08-18 03:37:47 +0000 |
commit | 03f0f536f63cb0135eb47a152a86c8d4e3f7c6db (patch) | |
tree | 6cd800a24c68d19065f6bc741a4b089dd41baff5 /converters/libiconv | |
parent | d57acf5e6f338eb7f8c037a71101d4742e45e984 (diff) | |
download | pkgsrc-03f0f536f63cb0135eb47a152a86c8d4e3f7c6db.tar.gz |
Export proper link flags to LDFLAGS based on overall config (i.e. whether
libiconv exists/is needed and whether to link it in). This means packages
can avoid hardcoding LDFLAGS+=-liconv and breaking on -current.
Fixes gnomeicu for -current and 1.6.x
Diffstat (limited to 'converters/libiconv')
-rw-r--r-- | converters/libiconv/buildlink2.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/converters/libiconv/buildlink2.mk b/converters/libiconv/buildlink2.mk index 845e4bf6d01..c40fa7a7a77 100644 --- a/converters/libiconv/buildlink2.mk +++ b/converters/libiconv/buildlink2.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink2.mk,v 1.8 2003/07/13 13:32:30 wiz Exp $ +# $NetBSD: buildlink2.mk,v 1.9 2003/08/18 03:37:47 jmc Exp $ .if !defined(ICONV_BUILDLINK2_MK) ICONV_BUILDLINK2_MK= # defined @@ -38,8 +38,6 @@ BUILDLINK_PACKAGES+= iconv EVAL_PREFIX+= BUILDLINK_PREFIX.iconv=libiconv BUILDLINK_PREFIX.iconv_DEFAULT= ${LOCALBASE} _BLNK_ICONV_LDFLAGS= -L${BUILDLINK_PREFIX.iconv}/lib -liconv -BUILDLINK_LIBICONV_LDADD= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib -BUILDLINK_LIBICONV_LDADD+= ${_BLNK_ICONV_LDFLAGS} .else BUILDLINK_PREFIX.iconv= /usr . if ${_BLNK_LIBICONV_FOUND} == "YES" @@ -47,8 +45,10 @@ _BLNK_ICONV_LDFLAGS= -liconv . else _BLNK_ICONV_LDFLAGS= # empty . endif -BUILDLINK_LIBICONV_LDADD= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib .endif +BUILDLINK_LIBICONV_LDADD= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib +BUILDLINK_LIBICONV_LDADD+= ${_BLNK_ICONV_LDFLAGS} +LDFLAGS+= ${BUILDLINK_LIBICONV_LDADD} LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \ -e "s|${BUILDLINK_PREFIX.iconv}/lib/libiconv.la|${_BLNK_ICONV_LDFLAGS}|g" \ |