aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-07-29 08:26:03 +0300
committerEli Schwartz <eschwartz93@gmail.com>2022-07-31 18:57:53 -0400
commit8a8ab9a8e0c2cefb6faa0734e52803c74790576c (patch)
tree4a41bdb9dd40faf8721a5de77d465e67aa1dd9ff
parentf774609b09c483d6632bfa77fb9403c0fa9927f8 (diff)
downloadmeson-8a8ab9a8e0c2cefb6faa0734e52803c74790576c.zip
meson-8a8ab9a8e0c2cefb6faa0734e52803c74790576c.tar.gz
meson-8a8ab9a8e0c2cefb6faa0734e52803c74790576c.tar.bz2
envconfig: add more binutils variables
follow standard variables and allow distributions to remove some entries from their cross-files ex: https://github.com/void-linux/void-packages/blob/f23acdd24bfade3a4e14809fafaffe09b3c3c318/common/build-style/meson.sh#L50-L54 variables chosen from the variables nixos sets https://github.com/NixOS/nixpkgs/blob/ea0f14a502c60223c96066de3ed548cb3be8ca47/pkgs/build-support/bintools-wrapper/setup-hook.sh#L58 sorted alphabetically
-rw-r--r--mesonbuild/envconfig.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py
index a49e7dd..820bc99 100644
--- a/mesonbuild/envconfig.py
+++ b/mesonbuild/envconfig.py
@@ -112,8 +112,17 @@ ENV_VAR_PROG_MAP: T.Mapping[str, str] = {
'rust_ld': 'RUSTC_LD',
# Binutils
- 'strip': 'STRIP',
'ar': 'AR',
+ 'as': 'AS',
+ 'ld': 'LD',
+ 'nm': 'NM',
+ 'objcopy': 'OBJCOPY',
+ 'objdump': 'OBJDUMP',
+ 'ranlib': 'RANLIB',
+ 'readelf': 'READELF',
+ 'size': 'SIZE',
+ 'strings': 'STRINGS',
+ 'strip': 'STRIP',
'windres': 'WINDRES',
# Other tools