summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSahan Fernando <sahan.h.fernando@gmail.com>2021-01-06 02:42:45 +1100
committerAndreas Kling <kling@serenityos.org>2021-01-06 09:42:08 +0100
commitedeec2974fa9cfbfaea6f70b2b940c950fb6ff05 (patch)
tree815b0e9cd478759e2a344f889488fceca6e42ea8
parentb370ee3423d9570f097adcbddcd07fac4285da52 (diff)
downloadserenity-edeec2974fa9cfbfaea6f70b2b940c950fb6ff05.zip
Everywhere: Force linker hash style to be gnu
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index df039d3f82..7c28fc51a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -116,7 +116,8 @@ endforeach()
set(CMAKE_INSTALL_NAME_TOOL "")
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
-set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared")
+set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -Wl,--hash-style=gnu")
+set(CMAKE_CXX_LINK_FLAGS "-Wl,--hash-style=gnu")
# Note: MacOS has different rpath rules from linux.
# We disable it completely for MacOS hosts to avoid having to track down all the individual flags to unset