summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2024-10-23 22:47:48 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2024-10-31 22:03:59 +0530
commit8242187eb06adaabbd9c9dbb6e5d9a8c102ee6a2 (patch)
treeafde64eea0455d42202968ec625cce7d021f352b /mesonbuild/compilers
parent1feb771f06ade5d0c721022c11fa76f5a7dd8fcb (diff)
downloadmeson-8242187eb06adaabbd9c9dbb6e5d9a8c102ee6a2.tar.gz
meson: De-dup rpath arguments
This fixes spammy warnings on apple clang: ld: warning: duplicate -rpath 'build/dist/darwin_universal/arm64/lib/pkgconfig/../../lib' ignored
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/mixins/clike.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py
index d56547b47..408e815fe 100644
--- a/mesonbuild/compilers/mixins/clike.py
+++ b/mesonbuild/compilers/mixins/clike.py
@@ -53,7 +53,7 @@ class CLikeCompilerArgs(arglist.CompilerArgs):
# NOTE: not thorough. A list of potential corner cases can be found in
# https://github.com/mesonbuild/meson/pull/4593#pullrequestreview-182016038
- dedup1_prefixes = ('-l', '-Wl,-l', '-Wl,--export-dynamic')
+ dedup1_prefixes = ('-l', '-Wl,-l', '-Wl,--export-dynamic', '-Wl,-rpath')
dedup1_suffixes = ('.lib', '.dll', '.so', '.dylib', '.a')
dedup1_args = ('-c', '-S', '-E', '-pipe', '-pthread')