1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00
freebsd-ports/Mk/Uses/execinfo.mk
Dmitry Marakasov 44b12e9ff7 - Set variables with libexecinfo preprocessor and linker flags
Differential Revision:	D2298
Reviewed by:	portmgr (bapt)
Approved by:	portmgr (bapt)
2015-04-16 14:15:12 +00:00

28 lines
610 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:${PORTSDIR}/devel/libexecinfo
EXECINFO_CPPFLAGS= -I${LOCALBASE}/include
EXECINFO_LDFLAGS= -L${LOCALBASE}/lib
.endif
.endif