diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-17 20:49:13 +0200 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2025-07-17 20:50:30 +0200 |
commit | 39d57cba2a5dd5fe2904c583912db1ba980383b6 (patch) | |
tree | df2dee3089fb75d1e24c619eec3a292087ba5b35 /devel | |
parent | audio/exaile: update to 4.1.4 (diff) |
devel/onetbb: fix build on powerpc*
error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
Diffstat (limited to 'devel')
-rw-r--r-- | devel/onetbb/files/patch-cmake_compilers_Clang.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/onetbb/files/patch-cmake_compilers_Clang.cmake b/devel/onetbb/files/patch-cmake_compilers_Clang.cmake new file mode 100644 index 000000000000..d0b891075a28 --- /dev/null +++ b/devel/onetbb/files/patch-cmake_compilers_Clang.cmake @@ -0,0 +1,11 @@ +--- cmake/compilers/Clang.cmake.orig 2025-07-17 17:44:20 UTC ++++ cmake/compilers/Clang.cmake +@@ -65,7 +65,7 @@ set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAG + # Clang flags to prevent compiler from optimizing out security checks + set(TBB_COMMON_COMPILE_FLAGS ${TBB_COMMON_COMPILE_FLAGS} -Wformat -Wformat-security -Werror=format-security -fPIC $<$<NOT:$<BOOL:${EMSCRIPTEN}>>:-fstack-protector-strong>) + +-if (NOT APPLE AND NOT ANDROID_PLATFORM AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") ++if (NOT APPLE AND NOT ANDROID_PLATFORM AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND NOT CMAKE_SYSTEM_PROCESSOR MATCHES "powerpc") + set(TBB_LIB_COMPILE_FLAGS ${TBB_LIB_COMPILE_FLAGS} -fstack-clash-protection $<$<NOT:$<BOOL:${EMSCRIPTEN}>>:-fcf-protection=full>) + endif() + |