opnsense-ports/security/softether5/files/patch-use-system-cpu_features
Franco Fichtner 1f6732cc1b */*: sync with upstream
Taken from: HardenedBSD
2019-02-24 13:39:59 +01:00

18 lines
709 B
Text

--- src/Mayaqua/CMakeLists.txt.orig 2019-02-03 19:43:50 UTC
+++ src/Mayaqua/CMakeLists.txt
@@ -63,14 +63,10 @@ if(UNIX)
find_library(LIB_RT rt)
- target_link_libraries(mayaqua PRIVATE OpenSSL::SSL OpenSSL::Crypto Threads::Threads ZLIB::ZLIB)
+ target_link_libraries(mayaqua PRIVATE OpenSSL::SSL OpenSSL::Crypto Threads::Threads ZLIB::ZLIB cpu_features)
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7l|aarch64|s390x)$" OR NOT HAVE_SYS_AUXV)
add_definitions(-DSKIP_CPU_FEATURES)
- else()
- add_subdirectory(3rdparty/cpu_features)
- set_property(TARGET cpu_features PROPERTY POSITION_INDEPENDENT_CODE ON)
- target_link_libraries(mayaqua PRIVATE cpu_features)
endif()
if(LIB_RT)