Detect libexecinfo present on /usr and fix build on -CURRENT

Approved by:	beat@ (maintainer)
This commit is contained in:
Renato Botelho 2013-10-04 11:28:29 +00:00
parent 188f97299d
commit 514aa78922
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=329288

View File

@ -197,7 +197,9 @@ CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG}
#
# Elinks will try to use it if exists
#
.if exists(${LOCALBASE}/include/execinfo.h)
.if exists(/usr/include/execinfo.h)
LDFLAGS+= -lexecinfo
.else if exists(${LOCALBASE}/include/execinfo.h)
LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
.endif