mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 14:57:45 -04:00
build, fix arch detection in configure
This commit is contained in:
parent
cb4379b3bf
commit
7401f7005f
2 changed files with 3 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -48,6 +48,8 @@ ifeq "$(ASAN)" "1"
|
||||||
else
|
else
|
||||||
ifeq "$(DEBUG)" "0"
|
ifeq "$(DEBUG)" "0"
|
||||||
CFLAGS += -O3 -DNDEBUG
|
CFLAGS += -O3 -DNDEBUG
|
||||||
|
else
|
||||||
|
CFLAGS += -O1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
|
|
2
configure
vendored
2
configure
vendored
|
@ -221,7 +221,7 @@ fi
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
ARCH=`$CC -dumpmachine | awk -F '-' '{print $1}'`
|
ARCH=`$CC $MFLAGS $CFLAGS -dumpmachine | awk -F '-' '{print $1}'`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# CPU/ABI stuff first, else compile test may fail
|
# CPU/ABI stuff first, else compile test may fail
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue