ports/lang/binaryen/patches/patch-CMakeLists_txt

18 lines
558 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
- Partially revert upstream commit b76d2fb1e5bb839249b25b7094db94219695f515,
it breaks the build on OpenBSD.
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
2023-09-11 22:02:06 +00:00
@@ -296,10 +296,6 @@ else()
2023-08-16 22:26:55 +00:00
# explicitly undefine it:
add_nondebug_compile_flag("-UNDEBUG")
2023-09-11 22:02:06 +00:00
endif()
2023-08-16 22:26:55 +00:00
- if(NOT APPLE AND NOT "${CMAKE_CXX_FLAGS}" MATCHES "-fsanitize")
- # This flag only applies to shared libraries so don't use add_link_flag
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
2023-09-11 22:02:06 +00:00
- endif()
2023-08-16 22:26:55 +00:00
endif()
2023-09-11 22:02:06 +00:00
if(EMSCRIPTEN)