aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authornotaz2012-08-04 20:52:45 +0300
committernotaz2012-08-04 20:52:45 +0300
commite795af9e2c73779499ec2b57175aca9bbe096cdb (patch)
treebd4d1ee6068b283809c29c2a38c80bb088311df1 /configure
parent9c59f1201acf724294f4517d96d0698f19ffa94c (diff)
downloadpcsx_rearmed-e795af9e2c73779499ec2b57175aca9bbe096cdb.tar.gz
pcsx_rearmed-e795af9e2c73779499ec2b57175aca9bbe096cdb.tar.bz2
pcsx_rearmed-e795af9e2c73779499ec2b57175aca9bbe096cdb.zip
configure: fix mfloat-abi detection
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 0618ac2..835672e 100755
--- a/configure
+++ b/configure
@@ -164,7 +164,6 @@ fi
# ARM stuff
if [ "$ARCH" = "arm" ]; then
if [ "$optimize_cortexa8" = "yes" ]; then
- # both: -mfpu=neon
CFLAGS="$CFLAGS -mcpu=cortex-a8 -mtune=cortex-a8"
ASFLAGS="$ASFLAGS -mcpu=cortex-a8"
fi
@@ -198,7 +197,7 @@ if [ "$ARCH" = "arm" ]; then
fi
fi
- # set mfpu and mfloat-abi if they are not set
+ # automatically set mfpu and mfloat-abi if they are not set
if [ "$have_arm_neon" = "yes" ]; then
echo "$CFLAGS" | grep -q -- '-mfpu=' || CFLAGS="$CFLAGS -mfpu=neon"
echo "$ASFLAGS" | grep -q -- '-mfpu=' || ASFLAGS="$ASFLAGS -mfpu=neon"
@@ -206,7 +205,8 @@ if [ "$ARCH" = "arm" ]; then
echo "$CFLAGS" | grep -q -- '-mfpu=' || CFLAGS="$CFLAGS -mfpu=vfp"
echo "$ASFLAGS" | grep -q -- '-mfpu=' || ASFLAGS="$ASFLAGS -mfpu=vfp"
fi
- if [ "$have_armv6" = "yes" ]; then
+ floatabi_set_by_gcc=`$CC -v 2>&1 | grep -q -- --with-float= && echo yes`
+ if [ "$floatabi_set_by_gcc" != "yes" -a "$have_armv6" = "yes" ]; then
echo "$CFLAGS" | grep -q -- '-mfloat-abi=' || CFLAGS="$CFLAGS -mfloat-abi=softfp"
echo "$ASFLAGS" | grep -q -- '-mfloat-abi=' || ASFLAGS="$ASFLAGS -mfloat-abi=softfp"
fi