aboutsummaryrefslogtreecommitdiff
path: root/devel/libexecinfo
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-08-27 12:26:24 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-08-27 12:26:24 +0000
commit58b4409228ce11af5bb7166e976f4adeb93064ea (patch)
tree1cf0d0f7aa8019136962858611bbe682e97b3d18 /devel/libexecinfo
parent540467aebaa93e64db204b7cd4af29c7a0adbbe0 (diff)
downloadports-58b4409228ce11af5bb7166e976f4adeb93064ea.tar.gz
ports-58b4409228ce11af5bb7166e976f4adeb93064ea.zip
- The gcc builtin function __builtin_frame_address seems to need
-fno-omit-frame-pointer to allow it to find the top of the stack. Without this libexecinfo can't correctly get a backtrace and instead causes a bus error. - bump PORTREVISION PR: ports/126727 Submitted by: Douglas William Thrift
Notes
Notes: svn path=/head/; revision=219299
Diffstat (limited to 'devel/libexecinfo')
-rw-r--r--devel/libexecinfo/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/libexecinfo/Makefile b/devel/libexecinfo/Makefile
index 29a21a62588d..ffe50a3fb77d 100644
--- a/devel/libexecinfo/Makefile
+++ b/devel/libexecinfo/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libexecinfo
PORTVERSION= 1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= itetcu
@@ -22,10 +22,16 @@ MAKE_FLAGS= LIBDIR=${PREFIX}/lib \
PORTDOCS= README
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "amd64"
+CFLAGS+= -fno-omit-frame-pointer
+.endif
+
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>