summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam>2002-11-26 10:25:05 +0000
committerjlam <jlam>2002-11-26 10:25:05 +0000
commitdb06e849eaa96f1277b37ea9347873f3d4d40e3c (patch)
treeacbf91fd39ad7c4cf9990b3dae3f211f17f6bb36 /devel
parent27f2f062232c9c230950b4a80287344f0e2a7b23 (diff)
downloadpkgsrc-db06e849eaa96f1277b37ea9347873f3d4d40e3c.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')
-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