diff options
author | Taillefumier Mathieu <29380261+mtaillefumier@users.noreply.github.com> | 2023-12-13 09:38:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-13 01:38:13 -0700 |
commit | 03625c1c9505d2cd12d94af08defd8279b7e37eb (patch) | |
tree | 65ef177988a701ae159501794468ef208a40ede1 | |
parent | f01774f1d41781bc4b9e5abb5469e234168da663 (diff) | |
download | spack-03625c1c9505d2cd12d94af08defd8279b7e37eb.tar.gz spack-03625c1c9505d2cd12d94af08defd8279b7e37eb.tar.bz2 spack-03625c1c9505d2cd12d94af08defd8279b7e37eb.tar.xz spack-03625c1c9505d2cd12d94af08defd8279b7e37eb.zip |
Add pic variant when building the library (#41631)
* Add pic variant when building the library
* make pretty
* Probably better approach
-rw-r--r-- | var/spack/repos/builtin/packages/libvori/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libvori/package.py b/var/spack/repos/builtin/packages/libvori/package.py index 5bb97e86f6..3125378bfd 100644 --- a/var/spack/repos/builtin/packages/libvori/package.py +++ b/var/spack/repos/builtin/packages/libvori/package.py @@ -19,3 +19,9 @@ class Libvori(CMakePackage): version("201229", sha256="da0afb292c94f8de2aaebfd0b692d15ffd86083cb8a48478b07ca93823decc06") version("201224", sha256="16f6c49eaa17ea23868925dbaae2eca71bdacbe50418c97d6c55e05728038f31") version("201217", sha256="6ad456ed6ca5d28cadcc0d90eabe8fff5caa77b99f12764323de5e3ae21cddf5") + + variant("pic", default=True, description="Compile the library with position independent code") + + def cmake_args(self): + args = [self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic")] + return args |