diff options
author | jlam <jlam@pkgsrc.org> | 2001-05-28 06:07:16 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-05-28 06:07:16 +0000 |
commit | ea23929312fd7871ff53b4085ec54de9d63ae079 (patch) | |
tree | 65e874702b388d8276c60858a2a306f8ff7bdbd0 /devel/gettext-lib/buildlink.mk | |
parent | 15fbb91bd69edf4c739c5f6937f2fb85e8c471b4 (diff) | |
download | pkgsrc-ea23929312fd7871ff53b4085ec54de9d63ae079.tar.gz |
Make sure that -lintl is add to LIBS in CONFIGURE_ENV to work around
broken gettext.m4.
Diffstat (limited to 'devel/gettext-lib/buildlink.mk')
-rw-r--r-- | devel/gettext-lib/buildlink.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/devel/gettext-lib/buildlink.mk b/devel/gettext-lib/buildlink.mk index c223fa9f4d8..ac752fb3da0 100644 --- a/devel/gettext-lib/buildlink.mk +++ b/devel/gettext-lib/buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink.mk,v 1.1 2001/05/28 03:00:23 jlam Exp $ +# $NetBSD: buildlink.mk,v 1.2 2001/05/28 06:07:16 jlam Exp $ # # This Makefile fragment is included by packages that use gettext. # @@ -38,6 +38,15 @@ GETTEXT_LIBS= /usr/lib/libintl.* BUILDLINK_INCDIR?= ${WRKDIR}/include BUILDLINK_LIBDIR?= ${WRKDIR}/lib +.if defined(GNU_CONFIGURE) +CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" +CONFIGURE_ENV+= LIBS="${LIBS}" +CFLAGS+= -I${BUILDLINK_INCDIR} +CPPFLAGS+= -I${BUILDLINK_INCDIR} +LDFLAGS+= -L${BUILDLINK_LIBDIR} +LIBS+= -lintl +.endif + BUILDLINK_TARGETS+= link-gettext-headers BUILDLINK_TARGETS+= link-gettext-libs |