diff options
author | Sahan Fernando <sahan.h.fernando@gmail.com> | 2021-01-06 02:42:45 +1100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-06 09:42:08 +0100 |
commit | edeec2974fa9cfbfaea6f70b2b940c950fb6ff05 (patch) | |
tree | 815b0e9cd478759e2a344f889488fceca6e42ea8 | |
parent | b370ee3423d9570f097adcbddcd07fac4285da52 (diff) | |
download | serenity-edeec2974fa9cfbfaea6f70b2b940c950fb6ff05.zip |
Everywhere: Force linker hash style to be gnu
-rw-r--r-- | CMakeLists.txt | 3 |
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 |