diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-10-22 15:13:49 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-01 14:49:09 +0000 |
commit | 7834e26ddb6f0205b8a4688b5df339f50803cc48 (patch) | |
tree | d9340b20dc2d8cfada26feab06cddca015e25c39 /Userland/Libraries/LibDeviceTree | |
parent | 39fca21e11889481b32f805a26e48fec73b4b9d0 (diff) | |
download | serenity-7834e26ddb6f0205b8a4688b5df339f50803cc48.zip |
Everywhere: Explicitly link all binaries against the LibC target
Even though the toolchain implicitly links against -lc, it does not know
where it should get LibC from except for the sysroot. In the case of
Clang this causes it to pick up the LibC stub instead, which might be
slightly outdated and feature missing symbols.
This is currently not an issue that manifests because we pass through
the dependency on LibC and other libraries by accident, which causes
CMake to link against the LibC target (instead of just the library),
and thus points the linker at the build output directory.
Since we are looking to fix that in the upcoming commits, let's make
sure that everything will still be able to find the proper LibC first.
Diffstat (limited to 'Userland/Libraries/LibDeviceTree')
-rw-r--r-- | Userland/Libraries/LibDeviceTree/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibDeviceTree/CMakeLists.txt b/Userland/Libraries/LibDeviceTree/CMakeLists.txt index f81192fc3c..d643ca7a2a 100644 --- a/Userland/Libraries/LibDeviceTree/CMakeLists.txt +++ b/Userland/Libraries/LibDeviceTree/CMakeLists.txt @@ -4,4 +4,4 @@ set(SOURCES ) serenity_lib(LibDeviceTree DeviceTree) -target_link_libraries(LibDeviceTree LibC LibCore) +target_link_libraries(LibDeviceTree LibCore) |