aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2022-07-29 08:26:03 +0300
committerNirbheek Chauhan <nirbheek@centricular.com>2022-08-08 19:10:32 +0530
commita18009ee3d57142a33857121cfbaac1fa61e7991 (patch)
tree9b00b406c034755c891f167335e8346904248dbb
parent21796bdb9ff1bca40a93e875254c2ca42cba5104 (diff)
downloadmeson-a18009ee3d57142a33857121cfbaac1fa61e7991.zip
meson-a18009ee3d57142a33857121cfbaac1fa61e7991.tar.gz
meson-a18009ee3d57142a33857121cfbaac1fa61e7991.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