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/DevTools/HackStudio/LanguageServers | |
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/DevTools/HackStudio/LanguageServers')
-rw-r--r-- | Userland/DevTools/HackStudio/LanguageServers/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/LanguageServers/CMakeLists.txt b/Userland/DevTools/HackStudio/LanguageServers/CMakeLists.txt index 5ee209de7f..337e45e42c 100644 --- a/Userland/DevTools/HackStudio/LanguageServers/CMakeLists.txt +++ b/Userland/DevTools/HackStudio/LanguageServers/CMakeLists.txt @@ -9,7 +9,7 @@ set(GENERATED_SOURCES LanguageServerEndpoint.h) serenity_lib(LibLanguageServer languageserver) -target_link_libraries(LibLanguageServer LibCodeComprehension LibC) +target_link_libraries(LibLanguageServer LibCodeComprehension) add_subdirectory(Cpp) add_subdirectory(Shell) |