Add a dso_suffix variable to build_environment
- Consolidate this in one place so that we don't have to do it in every build. - Will update further once better OS support is committed. Shoudl really be an attribute of the forthcoming `Platform` class.
This commit is contained in:
parent
b0b882cbb3
commit
dce590fb21
@ -59,6 +59,11 @@
|
|||||||
SPACK_DEBUG_LOG_DIR = 'SPACK_DEBUG_LOG_DIR'
|
SPACK_DEBUG_LOG_DIR = 'SPACK_DEBUG_LOG_DIR'
|
||||||
|
|
||||||
|
|
||||||
|
# Platform-specific library suffix.
|
||||||
|
dso_suffix = 'dylib' if sys.platform == 'darwin' else 'so'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class MakeExecutable(Executable):
|
class MakeExecutable(Executable):
|
||||||
"""Special callable executable object for make so the user can
|
"""Special callable executable object for make so the user can
|
||||||
specify parallel or not on a per-invocation basis. Using
|
specify parallel or not on a per-invocation basis. Using
|
||||||
@ -246,6 +251,9 @@ def set_module_variables_for_package(pkg, module):
|
|||||||
# a Prefix object.
|
# a Prefix object.
|
||||||
m.prefix = pkg.prefix
|
m.prefix = pkg.prefix
|
||||||
|
|
||||||
|
# Platform-specific library suffix.
|
||||||
|
m.dso_suffix = dso_suffix
|
||||||
|
|
||||||
|
|
||||||
def get_rpaths(pkg):
|
def get_rpaths(pkg):
|
||||||
"""Get a list of all the rpaths for a package."""
|
"""Get a list of all the rpaths for a package."""
|
||||||
|
Loading…
Reference in New Issue
Block a user