diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-04-16 22:15:12 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-04-16 22:15:12 +0800 |
commit | 991ba61180cab17721a1be48adb671c9bcccb59c (patch) | |
tree | 02f75b48509e07c14b529f51c312eec74926c6ab /Mk/Uses | |
parent | 3cfec205c1fbfc85c6dc14a870d613b1e2de5bf1 (diff) | |
download | freebsd-ports-gnome-991ba61180cab17721a1be48adb671c9bcccb59c.tar.gz freebsd-ports-gnome-991ba61180cab17721a1be48adb671c9bcccb59c.tar.zst freebsd-ports-gnome-991ba61180cab17721a1be48adb671c9bcccb59c.zip |
- Set variables with libexecinfo preprocessor and linker flags
Differential Revision: D2298
Reviewed by: portmgr (bapt)
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/execinfo.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Mk/Uses/execinfo.mk b/Mk/Uses/execinfo.mk index 72bab07b2d1e..3c4d0b846a04 100644 --- a/Mk/Uses/execinfo.mk +++ b/Mk/Uses/execinfo.mk @@ -5,13 +5,23 @@ # Feature: execinfo # Usage: USES=execinfo # -# Take no arguments +# 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 |