ports/net/wireshark/patches/patch-CMakeLists_txt

17 lines
623 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Avoid the broken libwsutil.so that gets generated with -pie -shared
(probably following tools/clang/lib/Driver/Tools.cpp r1.13 "push back
-pie to the linker if -pie is specified").
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
2023-08-28 01:43:33 +00:00
@@ -1053,7 +1053,7 @@ endif()
2023-08-16 22:26:55 +00:00
include(CheckCLinkerFlag)
-if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC" AND NOT OSS_FUZZ)
+if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC" AND NOT OSS_FUZZ AND NOT CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
#
# The -pie linker option produces a position-independent executable.
# Some Linux distributions have this enabled by default in the compiler,