diff options
author | joerg <joerg> | 2013-02-26 23:36:17 +0000 |
---|---|---|
committer | joerg <joerg> | 2013-02-26 23:36:17 +0000 |
commit | c6e0f32e241bcc636e9d21f01b4d7d2417a72f88 (patch) | |
tree | 350a20f7060636b000f5b49a5c43012b319dbae6 /parallel/mpi-ch/Makefile | |
parent | 6de4f0866ebfe1b5bb3dc3809ea2bb2db80694b0 (diff) | |
download | pkgsrc-c6e0f32e241bcc636e9d21f01b4d7d2417a72f88.tar.gz |
On NetBSD, link against libexecinfo when backtrace(3) is desired.
Diffstat (limited to 'parallel/mpi-ch/Makefile')
-rw-r--r-- | parallel/mpi-ch/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
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" |