aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-08 04:31:09 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-08-11 04:16:18 -0700
commitae5ebd258f45cbca94197c8d380628095680544d (patch)
tree84547775db7b037c73b160db0191e61bef718958 /mesonbuild/compilers/compilers.py
parent9ddc305e0727f5c89a61459c15325b31bf88f7da (diff)
downloadmeson-ae5ebd258f45cbca94197c8d380628095680544d.zip
meson-ae5ebd258f45cbca94197c8d380628095680544d.tar.gz
meson-ae5ebd258f45cbca94197c8d380628095680544d.tar.bz2
PkgConfigDependency: Don't try to resolve internal compiler libs
-lc -lm -ldl -lrt -lpthread are special linker arguments that should never be resolved to on-disk libraries. Closes https://github.com/mesonbuild/meson/issues/3879
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 25835a3..cb3ed23 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -661,6 +661,9 @@ class Compiler:
# Libraries to ignore in find_library() since they are provided by the
# compiler or the C library. Currently only used for MSVC.
ignore_libs = ()
+ # Libraries that are internal compiler implementations, and must not be
+ # manually searched.
+ internal_libs = ()
# Cache for the result of compiler checks which can be cached
compiler_check_cache = {}