build, fix arch detection in configure
authorkub <derkub@gmail.com>
Thu, 27 Jun 2024 19:28:42 +0000 (21:28 +0200)
committerkub <derkub@gmail.com>
Thu, 27 Jun 2024 22:23:38 +0000 (00:23 +0200)
Makefile
configure

index 486e4d0..f6ae8a5 100644 (file)
--- 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)
index e73c695..deb9b75 100755 (executable)
--- 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