Ports: Add "-ldl" as CMAKE_DL_LIBS in CMake platform patch

This commit is contained in:
Andrew Kaster 2022-01-09 04:44:02 -07:00 committed by Linus Groh
parent d8110e3bac
commit da00ccb26a
Notes: sideshowbarker 2024-07-17 21:16:57 +09:00

View File

@ -2,7 +2,7 @@ diff -urp /dev/null a/Modules/Platform/SerenityOS.cmake
--- /dev/null 2021-02-11 00:46:13.390326124 +0330
+++ a/Modules/Platform/SerenityOS.cmake 2021-02-12 16:31:38.421786222 +0330
@@ -0,0 +1,25 @@
+set(CMAKE_DL_LIBS "")
+set(CMAKE_DL_LIBS "-ldl")
+set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
+set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
+set(CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN "\$ORIGIN")