Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
734fb459
Commit
734fb459
authored
8 years ago
by
Joseph Ciurej
Browse files
Options
Downloads
Patches
Plain Diff
Fixing a small bug with metis@4+shared installs on the Mac platform.
parent
483ec0d7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/metis/package.py
+11
-9
11 additions, 9 deletions
var/spack/repos/builtin/packages/metis/package.py
with
11 additions
and
9 deletions
var/spack/repos/builtin/packages/metis/package.py
+
11
−
9
View file @
734fb459
...
...
@@ -94,17 +94,19 @@ def install(self, spec, prefix):
install
(
sharefile
,
prefix
.
share
)
if
'
+shared
'
in
spec
:
shared_flags
=
[
'
-fPIC
'
,
'
-shared
'
]
if
sys
.
platform
==
'
darwin
'
:
lib_dsuffix
=
'
dylib
'
load_flag
=
'
-Wl,-all_load
'
no_load_flag
=
''
shared_suffix
=
'
dylib
'
shared_flags
.
extend
([
'
-Wl,-all_load
'
,
'
libmetis.a
'
])
else
:
lib_d
suffix
=
'
so
'
loa
d_flag
=
'
-Wl,-whole-archive
'
no_load_flag
=
'
-Wl,-no-whole-archive
'
shared_
suffix
=
'
so
'
share
d_flag
s
.
extend
([
'
-Wl,-whole-archive
'
,
'
libmetis.a
'
,
'
-Wl,-no-whole-archive
'
])
ccompile
(
'
-fPIC
'
,
'
-shared
'
,
load_flag
,
'
libmetis.a
'
,
no_load_flag
,
'
-o
'
,
'
%s/libmetis.%s
'
%
(
prefix
.
lib
,
lib_dsuffix
))
shared_out
=
'
%s/libmetis.%s
'
%
(
prefix
.
lib
,
shared_suffix
)
shared_flags
.
extend
([
'
-o
'
,
shared_out
])
ccompile
(
*
shared_flags
)
# Set up and run tests on installation
ccompile
(
'
-I%s
'
%
prefix
.
include
,
'
-L%s
'
%
prefix
.
lib
,
...
...
@@ -128,7 +130,7 @@ def install(self, spec, prefix):
os
.
system
(
'
%s %s 10
'
%
(
test_bin
(
'
partdmesh
'
),
graph
))
os
.
system
(
'
%s %s
'
%
(
test_bin
(
'
mesh2dual
'
),
graph
))
#
TODO
: The following code should replace the testing code in the
#
FIXME
: The following code should replace the testing code in the
# block above since it causes installs to fail when one or more of the
# Metis tests fail, but it currently doesn't work because the 'mtest',
# 'onmetis', and 'partnmesh' tests return error codes that trigger
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment