mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +03:00
CMake: set CMAKE_SKIP_RPATH everywhere
Else, there's tons of "-- Set runtime path of" spam at build time, with apparently no way of disabling the build noise other than turning of rpaths. If the dynamic loader uses them at some point, we probably want to set them through cflags/ldflags instead of through cmake's built-in thing anyways, for that reason.
This commit is contained in:
parent
7ed89703fe
commit
6ab81c32be
Notes:
sideshowbarker
2024-07-19 00:03:50 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/6ab81c32be6 Pull-request: https://github.com/SerenityOS/serenity/pull/4836
@ -119,12 +119,9 @@ set(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
||||
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
|
||||
# We disable it completely because it makes cmake very spammy.
|
||||
# This will need to be revisited when the Loader supports RPATH/RUN_PATH.
|
||||
if (CMAKE_SYSTEM_NAME MATCHES Darwin)
|
||||
set(CMAKE_SKIP_RPATH TRUE)
|
||||
endif()
|
||||
|
||||
add_compile_options(-Os -g1 -fno-exceptions -fstack-protector-strong -Wno-address-of-packed-member -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -Wno-nonnull-compare -Wno-deprecated-copy -Wno-expansion-to-defined)
|
||||
add_compile_options(-ffile-prefix-map=${CMAKE_SOURCE_DIR}=.)
|
||||
|
Loading…
Reference in New Issue
Block a user