NetBSD-current provide iconv(3) functionality in libc not

libiconv. Some packages insist on adding '-liconv' during link
or assumes the existent of it with they found iconv.h.

BUILDLINK_TRANSFORM can handle that.
Put it in in libiconv/buildlink2.mk for systematic coverage and
remove it from package "Makefile".

BTW this fix the build of chat/centericq - and probably others - on
-current.

Okayed by jlam@.
This commit is contained in:
seb 2003-09-02 18:20:33 +00:00
parent d0c820332d
commit 529e68e4f1
2 changed files with 3 additions and 7 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.10 2003/08/15 22:48:04 jmc Exp $
# $NetBSD: Makefile.common,v 1.11 2003/09/02 18:20:34 seb Exp $
DISTNAME= everybuddy-0.2.0
CATEGORIES= chat
@ -31,8 +31,3 @@ post-install:
${INSTALL_SCRIPT} ${WRKDIR}/wrapper ${PREFIX}/bin/everybuddy
.include "../../converters/libiconv/buildlink2.mk"
_ICONV_LIB= ${BUILDLINK_LIBICONV_LDADD:M-l*:C/-l//}
.if empty(_ICONV_LIB)
BUILDLINK_TRANSFORM+= S:-liconv:
.endif

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink2.mk,v 1.9 2003/08/18 03:37:47 jmc Exp $
# $NetBSD: buildlink2.mk,v 1.10 2003/09/02 18:20:33 seb Exp $
.if !defined(ICONV_BUILDLINK2_MK)
ICONV_BUILDLINK2_MK= # defined
@ -44,6 +44,7 @@ BUILDLINK_PREFIX.iconv= /usr
_BLNK_ICONV_LDFLAGS= -liconv
. else
_BLNK_ICONV_LDFLAGS= # empty
BUILDLINK_TRANSFORM+= S:-liconv:
. endif
.endif
BUILDLINK_LIBICONV_LDADD= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib