summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/SerenityOS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/Platform/SerenityOS.cmake')
-rw-r--r--Modules/Platform/SerenityOS.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/Platform/SerenityOS.cmake b/Modules/Platform/SerenityOS.cmake
new file mode 100644
index 0000000..dc4f369
--- /dev/null
+++ b/Modules/Platform/SerenityOS.cmake
@@ -0,0 +1,12 @@
+
+set(SERENITYOS 1)
+
+set(CMAKE_DL_LIBS "")
+set(CMAKE_SHARED_LIBRARY_RPATH_ORIGIN_TOKEN "\$ORIGIN")
+set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
+
+# Shared libraries with no builtin soname may not be linked safely by
+# specifying the file path.
+set(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
+
+include(Platform/UnixPaths)