summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-10-26 19:18:36 +0000
committerjlam <jlam@pkgsrc.org>2001-10-26 19:18:36 +0000
commit7146b146991e0d1095f9c7f52e68f3654957b863 (patch)
tree7ff9b885bcd68a51b69ef175eb3fe7ab200a2c22 /devel/gettext-lib
parent0a8ec5c11728bfa57f80036f40455c6b5f7aead9 (diff)
downloadpkgsrc-7146b146991e0d1095f9c7f52e68f3654957b863.tar.gz
Define INTLLIBS to be the flags needed to link against libintl.a, and pass
${INTLLIBS} through to the configure environment. This should fix pkg/14360 (x11/gtk: gtk-config does not list "-lintl") by Jun-ichiro itojun Hagino <itojun@itojun.org>.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r--devel/gettext-lib/buildlink.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/gettext-lib/buildlink.mk b/devel/gettext-lib/buildlink.mk
index 1e10529191d..1dd33a7cd1c 100644
--- a/devel/gettext-lib/buildlink.mk
+++ b/devel/gettext-lib/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.11 2001/08/25 02:35:25 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.12 2001/10/26 19:18:36 jlam Exp $
#
# This Makefile fragment is included by packages that use gettext.
#
@@ -51,11 +51,13 @@ BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gettext}
# configure script fails to detect if libintl.a is the genuine GNU gettext
# or not.
#
-LIBS+= -L${BUILDLINK_DIR}/lib
+INTLLIBS= -L${BUILDLINK_DIR}/lib
.if ${_NEED_GNU_GETTEXT} == "YES"
-LIBS+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib
+INTLLIBS+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib
.endif
-LIBS+= -lintl
+INTLLIBS+= -lintl
+LIBS+= ${INTLLIBS}
+CONFIGURE_ENV+= INTLLIBS="${INTLLIBS}"
.endif
.endif