diff options
author | jlam <jlam@pkgsrc.org> | 2002-11-26 09:39:10 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-11-26 09:39:10 +0000 |
commit | 2bab70be16a8b073513ea2f51525e98d4989f915 (patch) | |
tree | 7ef881d5fab1b3048b24eb136d5dc1105c81896e /shells | |
parent | fc81ba995d9caf02371e51a4435570e7b5c75e4b (diff) | |
download | pkgsrc-2bab70be16a8b073513ea2f51525e98d4989f915.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/Makefile | 8 |
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 |