summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com>2024-09-06 15:11:03 +0200
committerGitHub <noreply@github.com>2024-09-06 15:11:03 +0200
commitfa5f4f1cabdcb105bfe81f98ddd5a1556de1d931 (patch)
treeaa6aed3f57b83f44cdeb0c59a58eacb73a55c0c8
parent4042afaa99426d8ed35643e531b69a8012fbd3f2 (diff)
downloadspack-fa5f4f1cabdcb105bfe81f98ddd5a1556de1d931.tar.gz
spack-fa5f4f1cabdcb105bfe81f98ddd5a1556de1d931.tar.bz2
spack-fa5f4f1cabdcb105bfe81f98ddd5a1556de1d931.tar.xz
spack-fa5f4f1cabdcb105bfe81f98ddd5a1556de1d931.zip
pthreadpool: add the PIC flag (#46216)
-rw-r--r--var/spack/repos/builtin/packages/pthreadpool/package.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pthreadpool/package.py b/var/spack/repos/builtin/packages/pthreadpool/package.py
index 2754fef9b7..5ccb439496 100644
--- a/var/spack/repos/builtin/packages/pthreadpool/package.py
+++ b/var/spack/repos/builtin/packages/pthreadpool/package.py
@@ -67,4 +67,5 @@ class Pthreadpool(CMakePackage):
self.define("PTHREADPOOL_BUILD_BENCHMARKS", False),
self.define("PTHREADPOOL_LIBRARY_TYPE", "static"),
self.define("PTHREADPOOL_ALLOW_DEPRECATED_API", True),
+ self.define("CMAKE_POSITION_INDEPENDENT_CODE", True),
]