summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-08-25 02:35:25 +0000
committerjlam <jlam@pkgsrc.org>2001-08-25 02:35:25 +0000
commitd0c69a0d502d08258dd1c7f06d4946a1ca5b2130 (patch)
tree962b571a9e4e8a61812db4db9686e9165c7437b1 /devel/gettext-lib
parent943a6291b23be03d3119c905659ed5a2eb2a4348 (diff)
downloadpkgsrc-d0c69a0d502d08258dd1c7f06d4946a1ca5b2130.tar.gz
Pass the appropriate linker flags in LIBS along with -lintl to ensure that
-lintl is picked up by the linker.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r--devel/gettext-lib/buildlink.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/gettext-lib/buildlink.mk b/devel/gettext-lib/buildlink.mk
index 9f05740200f..1e10529191d 100644
--- a/devel/gettext-lib/buildlink.mk
+++ b/devel/gettext-lib/buildlink.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink.mk,v 1.10 2001/07/27 13:33:23 jlam Exp $
+# $NetBSD: buildlink.mk,v 1.11 2001/08/25 02:35:25 jlam Exp $
#
# This Makefile fragment is included by packages that use gettext.
#
@@ -51,7 +51,11 @@ BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.gettext}
# configure script fails to detect if libintl.a is the genuine GNU gettext
# or not.
#
-LIBS+= -lintl
+LIBS+= -L${BUILDLINK_DIR}/lib
+.if ${_NEED_GNU_GETTEXT} == "YES"
+LIBS+= -Wl,-R${BUILDLINK_PREFIX.gettext}/lib
+.endif
+LIBS+= -lintl
.endif
.endif