notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4379b
)
build, fix arch detection in configure
author
kub
<derkub@gmail.com>
Thu, 27 Jun 2024 19:28:42 +0000
(21:28 +0200)
committer
kub
<derkub@gmail.com>
Thu, 27 Jun 2024 22:23:38 +0000
(
00:23
+0200)
Makefile
patch
|
blob
|
blame
|
history
configure
patch
|
blob
|
blame
|
history
diff --git
a/Makefile
b/Makefile
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)
diff --git
a/configure
b/configure
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