summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibChess
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-10-22 15:13:49 +0200
committerLinus Groh <mail@linusgroh.de>2022-11-01 14:49:09 +0000
commit7834e26ddb6f0205b8a4688b5df339f50803cc48 (patch)
treed9340b20dc2d8cfada26feab06cddca015e25c39 /Userland/Libraries/LibChess
parent39fca21e11889481b32f805a26e48fec73b4b9d0 (diff)
downloadserenity-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/LibChess')
-rw-r--r--Userland/Libraries/LibChess/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibChess/CMakeLists.txt b/Userland/Libraries/LibChess/CMakeLists.txt
index 07c6a5aa47..a5e8a23dd5 100644
--- a/Userland/Libraries/LibChess/CMakeLists.txt
+++ b/Userland/Libraries/LibChess/CMakeLists.txt
@@ -5,4 +5,4 @@ set(SOURCES
)
serenity_lib(LibChess chess)
-target_link_libraries(LibChess LibC LibCore)
+target_link_libraries(LibChess LibCore)