From c6e0f32e241bcc636e9d21f01b4d7d2417a72f88 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 26 Feb 2013 23:36:17 +0000 Subject: On NetBSD, link against libexecinfo when backtrace(3) is desired. --- parallel/mpi-ch/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'parallel/mpi-ch/Makefile') diff --git a/parallel/mpi-ch/Makefile b/parallel/mpi-ch/Makefile index af65051d19f..9b1cf7f831e 100644 --- a/parallel/mpi-ch/Makefile +++ b/parallel/mpi-ch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.70 2012/10/03 21:57:14 wiz Exp $ +# $NetBSD: Makefile,v 1.71 2013/02/26 23:36:17 joerg Exp $ DISTNAME= mpich2-1.4.1p1 PKGREVISION= 1 @@ -63,6 +63,12 @@ CONF_FILES+= share/${PKGBASE}/examples/mpif77.conf \ BUILDLINK_TRANSFORM+= rm:-lrt .endif +.if ${OPSYS} == "NetBSD" && exists(/usr/include/execinfo.h) +MAKE_ENV+= LIBEXECINFO=-lexecinfo +.else +MAKE_ENV+= LIBEXECINFO= +.endif + .include "options.mk" .include "../../parallel/openpa/buildlink3.mk" -- cgit v1.2.3