aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/execinfo.mk
blob: 3c4d0b846a0411d4c82b9a9411e9b3ca3ef016b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $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