From a18009ee3d57142a33857121cfbaac1fa61e7991 Mon Sep 17 00:00:00 2001 From: Artturin Date: Fri, 29 Jul 2022 08:26:03 +0300 Subject: [PATCH] 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 --- mesonbuild/envconfig.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index a49e7dd938a8..820bc990f135 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -112,8 +112,17 @@ '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