diff options
author | jlam <jlam> | 2002-11-26 10:25:05 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-11-26 10:25:05 +0000 |
commit | e2d8dcba5bbdbb74e9d1b668b03569bdb2bd51e1 (patch) | |
tree | acbf91fd39ad7c4cf9990b3dae3f211f17f6bb36 /devel | |
parent | 29fcd553221e84c3405baf5dc68f0ce7aac04d8f (diff) | |
download | pkgsrc-e2d8dcba5bbdbb74e9d1b668b03569bdb2bd51e1.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.mk | 13 |
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 |