summaryrefslogtreecommitdiff
path: root/shells/fish/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-05-23 15:07:29 +0000
committerjoerg <joerg@pkgsrc.org>2013-05-23 15:07:29 +0000
commit25938dc99adc6582db785b7a83a086ee219b6d51 (patch)
treec342220d3867c94e3987ddb0f4f2181c073c47de /shells/fish/Makefile
parentbacca5e532067406c3551f87c286b3f2fcda1893 (diff)
downloadpkgsrc-25938dc99adc6582db785b7a83a086ee219b6d51.tar.gz
Simpler and more correct check for libexecinfo.
Diffstat (limited to 'shells/fish/Makefile')
-rw-r--r--shells/fish/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/shells/fish/Makefile b/shells/fish/Makefile
index 7871ea877c8..eb9590c9f61 100644
--- a/shells/fish/Makefile
+++ b/shells/fish/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2013/05/11 19:37:14 riastradh Exp $
+# $NetBSD: Makefile,v 1.3 2013/05/23 15:07:29 joerg Exp $
#
DISTNAME= fish-1.23.1
@@ -24,8 +24,7 @@ PKG_SHELL= bin/fish
.include "../../mk/bsd.prefs.mk"
-# backtrace() and backtrace_symbols were added in NetBSD-6.99.8
-.if !empty(MACHINE_PLATFORM:MNetBSD-*) && (empty(MACHINE_PLATFORM:MNetBSD-[0-6].*) || (!empty(MACHINE_PLATFORM:MNetBS-6.99.*) && empty(MACHINE_PLATFORM:MNetBSD-6.99.[0-7])))
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/execinfo.h)
CPPFLAGS+= -DHAVE_BACKTRACE
CPPFLAGS+= -DHAVE_BACKTRACE_SYMBOLS
LDFLAGS+= -lexecinfo