From 7401f7005f5a18f0e1e3e7410bc77308e7df27a5 Mon Sep 17 00:00:00 2001 From: kub Date: Thu, 27 Jun 2024 21:28:42 +0200 Subject: [PATCH] build, fix arch detection in configure --- Makefile | 2 ++ configure | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 486e4d01..f6ae8a5a 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,8 @@ ifeq "$(ASAN)" "1" else ifeq "$(DEBUG)" "0" CFLAGS += -O3 -DNDEBUG +else + CFLAGS += -O1 endif endif LD = $(CC) diff --git a/configure b/configure index e73c6959..deb9b75c 100755 --- a/configure +++ b/configure @@ -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 -- 2.39.5