Add LC_ALL=C to cc-objdump-file-format.sh for awk to work properly

Signed-off-by: Ilya Denisyev <dev@elkcl.ru>
This commit is contained in:
Ilya Denisyev
2025-08-21 22:44:29 +03:00
parent 5b7acfc242
commit 49f9937378

View File

@@ -4,5 +4,5 @@
# Print the C compiler output file format, as determined by objdump.
t=`mktemp` || exit 1
echo 'void foo(void) {}' | $CC -x c - -c -o "$t" \
&& $OBJDUMP -p "$t" | awk '/file format/ {print $4}'
&& LC_ALL=C $OBJDUMP -p "$t" | awk '/file format/ {print $4}'
rm "$t"