summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorjlam <jlam>2002-11-26 09:39:10 +0000
committerjlam <jlam>2002-11-26 09:39:10 +0000
commit096d3b12287cb2561756bdc5f631b938a2e84f4f (patch)
tree7ef881d5fab1b3048b24eb136d5dc1105c81896e /shells
parent7302508ad787b32745dd53bab5be5f96d33a3506 (diff)
downloadpkgsrc-096d3b12287cb2561756bdc5f631b938a2e84f4f.tar.gz
Only add "-lintl" to LIBS if libintl.* is found in the library path. This
addresses PR 18885 by Jeremy Reed <reed@reedmedia.net>.
Diffstat (limited to 'shells')
-rw-r--r--shells/bash2/Makefile8
1 files changed, 6 insertions, 2 deletions
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