summaryrefslogtreecommitdiff
path: root/devel/libdatrie/Makefile
diff options
context:
space:
mode:
authorobache <obache>2012-09-22 04:43:09 +0000
committerobache <obache>2012-09-22 04:43:09 +0000
commit25b2bfe99c711ddd37ebde6ad5347a46a7cb22dd (patch)
treec0ec504433814bf21952b827a9721db5f4f5382d /devel/libdatrie/Makefile
parent650a3435853a20a1986a461181e507b03dfb3ca5 (diff)
downloadpkgsrc-25b2bfe99c711ddd37ebde6ad5347a46a7cb22dd.tar.gz
Fix `Fix build on SunOS`.
Passing LIBS=-liconv will be result in unwanted libiconv linkage for libdatrie (it is just required for trietool-0.2), then it cause build failure of depending packages due to missing libiconv. Passing sufficient iconv library to configure script with right way, and it also fix build failure on other platforms for the case GNU iconv from pkgsrc is preferred rather than builtin iconv.
Diffstat (limited to 'devel/libdatrie/Makefile')
-rw-r--r--devel/libdatrie/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/libdatrie/Makefile b/devel/libdatrie/Makefile
index 8728bb6985d..7fb076e12f2 100644
--- a/devel/libdatrie/Makefile
+++ b/devel/libdatrie/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2012/02/16 18:46:51 hans Exp $
+# $NetBSD: Makefile,v 1.10 2012/09/22 04:43:09 obache Exp $
#
DISTNAME= libdatrie-0.2.5
@@ -17,7 +17,7 @@ GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
-LIBS.SunOS+= -liconv
+CONFIGURE_ENV+= ICONV_LIBS=${BUILDLINK_LDADD.iconv:Q}
PKGCONFIG_OVERRIDE+= datrie-0.2.pc.in