summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-09-22 04:43:09 +0000
committerobache <obache@pkgsrc.org>2012-09-22 04:43:09 +0000
commite803b55f69065bc28c4444b543732bdd4e7191b7 (patch)
treec0ec504433814bf21952b827a9721db5f4f5382d
parent0cb7e1a42fc66b538c7970984239fdc649cb0585 (diff)
downloadpkgsrc-e803b55f69065bc28c4444b543732bdd4e7191b7.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.
-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