mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Check for file's existence before trying to run ldd on it so this won't kill
make INDEX.
This commit is contained in:
parent
61722d8b0a
commit
6d91bcbc88
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33396
@ -29,7 +29,11 @@ INSTALL_TARGET= site-install
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# Hmm, GREP and TRUE seem to be defined in the bsd.port.post.mk stage.
|
||||
.if exists(${LOCALBASE}/bin/gd2topng)
|
||||
WITH_X11_CHECK!= ldd ${LOCALBASE}/bin/gd2topng | grep -w 'libX11\.so' || true
|
||||
.else
|
||||
WITH_X11_CHECK= #empty
|
||||
.endif
|
||||
|
||||
.if !empty(WITH_X11_CHECK)
|
||||
USE_XLIB= yes
|
||||
|
Loading…
Reference in New Issue
Block a user