diff options
author | notaz | 2012-12-26 22:50:29 +0200 |
---|---|---|
committer | notaz | 2012-12-26 22:50:29 +0200 |
commit | 0dc1b4a95dcf382f60b097c2b266ca6b7e676c00 (patch) | |
tree | 53482b736b1289901c2abf2bc70cda17c2e7ced5 | |
parent | 00a212aade3025ba76e60d90520a7b302f83b7ff (diff) | |
download | pcsx_rearmed-0dc1b4a95dcf382f60b097c2b266ca6b7e676c00.tar.gz pcsx_rearmed-0dc1b4a95dcf382f60b097c2b266ca6b7e676c00.tar.bz2 pcsx_rearmed-0dc1b4a95dcf382f60b097c2b266ca6b7e676c00.zip |
configure: handle ARM machine names with version
like armv6l-unknown-linux-gnueabihf in Arch Linux
-rwxr-xr-x | configure | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -181,16 +181,18 @@ cat > $TMPC <<EOF int main(void) { return 0; } EOF if ! compile_binary; then - fail "basic compiler test failed, please check config.log" + fail "compiler test failed, please check config.log" fi if [ -z "$ARCH" ]; then - ARCH=`$CC -v 2>&1 | grep -i 'target:' | awk '{print $2}' \ - | awk -F '-' '{print $1}'` + ARCH=`$CC -dumpmachine | awk -F '-' '{print $1}'` fi -# ARM stuff -if [ "$ARCH" = "arm" ]; then +case "$ARCH" in +arm*) + # ARM stuff + ARCH="arm" + if [ "$optimize_cortexa8" = "yes" ]; then CFLAGS="$CFLAGS -mcpu=cortex-a8 -mtune=cortex-a8" ASFLAGS="$ASFLAGS -mcpu=cortex-a8" @@ -266,10 +268,12 @@ if [ "$ARCH" = "arm" ]; then echo "You probably want to specify -mcpu= or -march= like this:" echo " CFLAGS=-march=armv7-a ./configure ..." fi -else + ;; +*) # dynarec only available on ARM enable_dynarec="no" -fi + ;; +esac if [ "x$builtin_gpu" = "x" ]; then builtin_gpu="peops" |