From bb7c110320ea5ccf975f59fd7fff70c317b1d1d6 Mon Sep 17 00:00:00 2001 From: Matthias Reichl Date: Thu, 30 Jun 2022 16:30:38 +0200 Subject: [PATCH] config/optimize: drop unused MACHINE_HARDWARE_CPU/PLATFORM variables uname options -p and -i are non portable and return "unknown" on Linux with GNU coreutils as there's no OS support for it. Note: some distributions like Fedora or Ubunto patch coreutils so that uname -p (more or less) returns the machine name (uname -m output). But that should not be used and fails on distributions like Debian that don't add that patch. Signed-off-by: Matthias Reichl --- config/optimize | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/optimize b/config/optimize index 6122fc54a9..fe5f8ec625 100644 --- a/config/optimize +++ b/config/optimize @@ -65,9 +65,7 @@ if [ -z "$HOST_LIBDIR" ]; then HOST_LIBDIR="$TOOLCHAIN/lib" # ubuntu/debian specific "multiarch support" - export MACHINE_HARDWARE_CPU="$(uname -p)" export MACHINE_HARDWARE_NAME="$(uname -m)" - export MACHINE_HARDWARE_PLATFORM="$(uname -i)" FAMILY_TRIPLET=$($LOCAL_CC -print-multiarch) if [ -n "$FAMILY_TRIPLET" ]; then if [ -d /lib/$FAMILY_TRIPLET ]; then