summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorjlam <jlam>2001-08-25 02:35:25 +0000
committerjlam <jlam>2001-08-25 02:35:25 +0000
commitbf9811da8baeac56c916cf46b62829cd4a359022 (patch)
tree962b571a9e4e8a61812db4db9686e9165c7437b1 /devel/gettext-lib
parentad81bb4835cb7365d143712bc8e305944ecb69ca (diff)
downloadpkgsrc-bf9811da8baeac56c916cf46b62829cd4a359022.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