summaryrefslogtreecommitdiff
path: root/devel/gettext-lib
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-11-26 10:25:05 +0000
committerjlam <jlam@pkgsrc.org>2002-11-26 10:25:05 +0000
commitdf076ce1a84737a6f3de81c42bcdb2532abc2264 (patch)
treeacbf91fd39ad7c4cf9990b3dae3f211f17f6bb36 /devel/gettext-lib
parentcb9f373b947ac6b6372a75468fb0c57815bc7659 (diff)
downloadpkgsrc-df076ce1a84737a6f3de81c42bcdb2532abc2264.tar.gz
More changes to try to get gettext-lib/buildlink2.mk to work properly on
Linux systems that include gettext() routines in glibc. We now properly substitute for libintl.la references in libtool archives, and we don't produce the fake libintl.la since it has no meaning if there is not a real libintl.
Diffstat (limited to 'devel/gettext-lib')
-rw-r--r--devel/gettext-lib/buildlink2.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/devel/gettext-lib/buildlink2.mk b/devel/gettext-lib/buildlink2.mk
index 97d106311db..25d793c46e8 100644
--- a/devel/gettext-lib/buildlink2.mk
+++ b/devel/gettext-lib/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.9 2002/11/20 08:48:03 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.10 2002/11/26 10:25:05 jlam Exp $
.if !defined(GETTEXT_BUILDLINK2_MK)
GETTEXT_BUILDLINK2_MK= # defined
@@ -57,7 +57,9 @@ BUILDLINK_FILES.gettext= include/libintl.h
BUILDLINK_FILES.gettext+= lib/libintl.*
BUILDLINK_TARGETS+= gettext-buildlink
+.if ${_BLNK_LIBINTL_FOUND} == "YES"
BUILDLINK_TARGETS+= gettext-libintl-la
+.endif
# Add -lintl to LIBS in CONFIGURE_ENV to work around broken gettext.m4:
# older gettext.m4 does not add -lintl where it should, and the resulting
@@ -89,9 +91,14 @@ CONFIGURE_ENV+= gt_cv_func_gnugettext1_libintl="yes"
.endif
.if ${_NEED_GNU_GETTEXT} == "NO"
+. if ${_BLNK_LIBINTL_FOUND} == "YES"
+_BLNK_INTL_LDFLAGS= -L${BUILDLINK_PREFIX.gettext}/lib -lintl
+. else
+_BLNK_INTL_LDFLAGS= # empty
+. endif
LIBTOOL_ARCHIVE_UNTRANSFORM_SED+= \
- -e "s|${BUILDLINK_PREFIX.gettext}/lib/libintl.la|-L${BUILDLINK_PREFIX.gettext}/lib -lintl|g" \
- -e "s|${LOCALBASE}/lib/libintl.la|-L${BUILDLINK_PREFIX.gettext}/lib -lintl|g"
+ -e "s|${BUILDLINK_PREFIX.gettext}/lib/libintl.la|${_BLNK_INTL_LDFLAGS}|g" \
+ -e "s|${LOCALBASE}/lib/libintl.la|${_BLNK_INTL_LDFLAGS}|g"
.endif
gettext-buildlink: _BUILDLINK_USE