Explicitly link standard libs through CMake (#3035)

* Explicitly link standard libs through CMake

* Also keep the original link flags
This commit is contained in:
definitelyuncertain
2025-09-27 17:40:12 +05:30
committed by GitHub
parent 9b2bef153b
commit 79e3d00e35

View File

@@ -1217,6 +1217,7 @@ else()
endif()
else()
set_property(TARGET ${BOX64} APPEND_STRING PROPERTY LINK_FLAGS "-Wl,--no-as-needed -lc -lm -ldl -lrt -lpthread -lresolv -lutil -Wl,--as-needed -pthread ")
target_link_libraries(${BOX64} c m dl pthread resolv util c)
endif()
endif()
if(DYNAREC)