From 2bab70be16a8b073513ea2f51525e98d4989f915 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 26 Nov 2002 09:39:10 +0000 Subject: Only add "-lintl" to LIBS if libintl.* is found in the library path. This addresses PR 18885 by Jeremy Reed . --- shells/bash2/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'shells') diff --git a/shells/bash2/Makefile b/shells/bash2/Makefile index 4c53b6064e7..1a4021f2fae 100644 --- a/shells/bash2/Makefile +++ b/shells/bash2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2002/11/25 04:18:47 schmonz Exp $ +# $NetBSD: Makefile,v 1.39 2002/11/26 09:39:10 jlam Exp $ # DISTNAME= bash-2.05b @@ -68,8 +68,12 @@ post-install: CPPFLAGS:= -I${GETTEXTDIR}/include ${CPPFLAGS} CFLAGS:= -I${GETTEXTDIR}/include ${CFLAGS} -LDFLAGS= -L${GETTEXTDIR}/lib +LDFLAGS= # empty +LIBINTL_LIST!= set ${GETTEXT_PREFIX}/lib/libintl.*; ${ECHO} $$1 +.if ${LIBINTL_LIST} != "${GETTEXT_PREFIX}/lib/libintl.*" +LDFLAGS+= -L${GETTEXTDIR}/lib .if ${_USE_RPATH} == "yes" LDFLAGS+= -Wl,-R${GETTEXT_PREFIX}/lib .endif LIBS+= ${LDFLAGS} -lintl +.endif -- cgit v1.2.3