loong64: build: Fix libc link flags

This commit is contained in:
klzgrad 2025-04-05 19:25:21 +08:00
parent 8b87893163
commit 4091f73c12

View file

@ -216,11 +216,14 @@ config("default_libs") {
# linking can have run-time side effects, nothing should be listed here.
libs = []
} else if (is_linux || is_chromeos) {
libs = [
"dl",
"pthread",
"rt",
]
# loong64 uses newer libc that subsumes libdl.so etc.
if (current_cpu != "loong64") {
libs = [
"dl",
"pthread",
"rt",
]
}
}
}