summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam>2001-08-25 02:35:25 +0000
committerjlam <jlam>2001-08-25 02:35:25 +0000
commit16029a8268c56edd9d9a95593879f608b9f4f906 (patch)
tree962b571a9e4e8a61812db4db9686e9165c7437b1 /devel
parente88525a5d1cbd2cceec27f6872e5c551d255ca33 (diff)
downloadpkgsrc-16029a8268c56edd9d9a95593879f608b9f4f906.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')
-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