diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2024-10-23 22:47:48 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2024-10-31 22:03:59 +0530 |
| commit | 8242187eb06adaabbd9c9dbb6e5d9a8c102ee6a2 (patch) | |
| tree | afde64eea0455d42202968ec625cce7d021f352b /mesonbuild/compilers | |
| parent | 1feb771f06ade5d0c721022c11fa76f5a7dd8fcb (diff) | |
| download | meson-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.py | 2 |
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') |
