pass hwloc to configure via useropt; use lib/ or lib64/ as appropriate for libunwind (#16941)
This commit is contained in:
parent
7617054a5d
commit
b64ec7fba4
2 changed files with 37 additions and 0 deletions
|
@ -107,6 +107,8 @@ class Tau(Package):
|
|||
conflicts('+adios2', when='@:2.29.1')
|
||||
conflicts('+sqlite', when='@:2.29.1')
|
||||
|
||||
patch('unwind.patch', when="@2.29")
|
||||
|
||||
def set_compiler_options(self, spec):
|
||||
|
||||
useropt = ["-O2 -g", self.rpath_args]
|
||||
|
@ -144,6 +146,7 @@ def set_compiler_options(self, spec):
|
|||
|
||||
def setup_build_environment(self, env):
|
||||
env.prepend_path('LIBRARY_PATH', self.spec['zlib'].prefix.lib)
|
||||
env.prepend_path('LIBRARY_PATH', self.spec['hwloc'].prefix.lib)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# TAU isn't happy with directories that have '@' in the path. Sigh.
|
||||
|
|
34
var/spack/repos/builtin/packages/tau/unwind.patch
Normal file
34
var/spack/repos/builtin/packages/tau/unwind.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
From 3b60cbcab167f8f1cf450f0319850bfa88f39d3a Mon Sep 17 00:00:00 2001
|
||||
From: eugeneswalker <eugenesunsetwalker@gmail.com>
|
||||
Date: Thu, 4 Jun 2020 06:12:41 -0700
|
||||
Subject: [PATCH] check for unwind_dir/lib and unwind_dir/lib64
|
||||
|
||||
---
|
||||
configure | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index 3bd7430..b673cdf 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -1662,8 +1662,15 @@ for arg in "$@"; do
|
||||
-unwind=*)
|
||||
unwind_dir=`echo $arg | sed -e 's/-unwind=//'`
|
||||
if [ $unwind_dir != "/usr" ]; then
|
||||
- unwind_inc="$unwind_dir/include"
|
||||
- unwind_lib="$unwind_dir/lib"
|
||||
+ unwind_inc="$unwind_dir/include"
|
||||
+ unwind_lib=""
|
||||
+ if [[ -d "$unwind_dir/lib" ]] ; then
|
||||
+ unwind_lib="$unwind_dir/lib"
|
||||
+ elif [[ -d "$unwind_dir/lib64" ]] ; then
|
||||
+ unwind_lib="$unwind_dir/lib64"
|
||||
+ else
|
||||
+ exit 1
|
||||
+ fi
|
||||
fi
|
||||
# So that the user doesn't have to specify the unwinder,
|
||||
# use libunwind as the default.
|
||||
--
|
||||
2.24.2 (Apple Git-127)
|
||||
|
Loading…
Reference in a new issue