freebsd-ports/Mk/Uses/execinfo.mk
Baptiste Daroussin 421767bd88 Remove the now unneeded ${PORTSDIR} from dependency definition in
The infrastructure Makefiles

PR:		206569
Exp run by:	antoine
Differential Revision:	D5047
2016-03-27 01:23:25 +00:00

28 lines
598 B
Makefile

# $FreeBSD$
#
# handle dependency on libexecinfo
#
# Feature: execinfo
# Usage: USES=execinfo
#
# Takes no arguments
#
# Exported variables:
#
# EXECINFO_CPPFLAGS - preprocessor flags needed to correctly use
# execinfo library
# EXECINFO_LDFLAGS - linker flags needed to correctly use
# execinfo library
#
.if !defined(_INCLUDE_USES_EXECINFO_MK)
_INCLUDE_USES_EXECINFO_MK= yes
.if !exists(/usr/lib/libexecinfo.so)
LIB_DEPENDS+= libexecinfo.so:devel/libexecinfo
EXECINFO_CPPFLAGS= -I${LOCALBASE}/include
EXECINFO_LDFLAGS= -L${LOCALBASE}/lib
.endif
.endif