ports/graphics/jpeg/patches/patch-CMakeLists_txt

17 lines
627 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Symbol versioning triggers weird linking problems in dependent ports.
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -509,10 +509,6 @@ endif()
if(UNIX AND NOT APPLE)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map "VERS_1 { global: *; };")
- set(CMAKE_REQUIRED_FLAGS
- "-Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
- check_c_source_compiles("int main(void) { return 0; }" HAVE_VERSION_SCRIPT)
- set(CMAKE_REQUIRED_FLAGS)
file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/conftest.map)
if(HAVE_VERSION_SCRIPT)
message(STATUS "Linker supports GNU-style version scripts")