From 16029a8268c56edd9d9a95593879f608b9f4f906 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 25 Aug 2001 02:35:25 +0000 Subject: Pass the appropriate linker flags in LIBS along with -lintl to ensure that -lintl is picked up by the linker. --- devel/gettext-lib/buildlink.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'devel') 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 -- cgit v1.2.3