build, fix arch detection in configure

This commit is contained in:
kub 2024-06-27 21:28:42 +02:00
parent cb4379b3bf
commit 7401f7005f
2 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,8 @@ ifeq "$(ASAN)" "1"
else
ifeq "$(DEBUG)" "0"
CFLAGS += -O3 -DNDEBUG
else
CFLAGS += -O1
endif
endif
LD = $(CC)

2
configure vendored
View file

@ -221,7 +221,7 @@ fi
#fi
if [ -z "$ARCH" ]; then
ARCH=`$CC -dumpmachine | awk -F '-' '{print $1}'`
ARCH=`$CC $MFLAGS $CFLAGS -dumpmachine | awk -F '-' '{print $1}'`
fi
# CPU/ABI stuff first, else compile test may fail