sleef: add the PIC flag (#46217)

This commit is contained in:
Juan Miguel Carceller 2024-09-06 17:37:20 +02:00 committed by GitHub
parent fa5f4f1cab
commit 2b9a621d19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,10 @@ def sleef_define(self, cmake_var, value):
return self.define(cmake_var, value)
def cmake_args(self):
args = [self.sleef_define("BUILD_TESTS", self.run_tests)]
args = [
self.sleef_define("BUILD_TESTS", self.run_tests),
self.define("CMAKE_POSITION_INDEPENDENT_CODE", True),
]
# https://github.com/shibatch/sleef/issues/474
if self.spec.satisfies("@:3.5.1_2024-02-08 platform=darwin"):