ARCHDIR=arch/arm
+ cat > $test.c << EOF
+int main() { return 0; }
+EOF
+ if try $CC -w -c $SFLAGS $test.c -mfloat-abi=softfp &&
+ try $LDSHARED $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
+ floatabi="-mfloat-abi=softfp"
+ else
+ if try $CC -w -c $SFLAGS $test.c -mfloat-abi=hard &&
+ try $LDSHARED $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
+ floatabi="-mfloat-abi=hard"
+ fi
+ fi
+
+ if [ -z $floatabi ]; then
+ echo "ARM floating point arch not auto-detected" | tee -a configure.log
+ else
+ echo "ARM floating point arch: ${floatabi}" | tee -a configure.log
+
+ CFLAGS="${CFLAGS} ${floatabi}"
+ SFLAGS="${SFLAGS} ${floatabi}"
+ fi
+
if test $without_optimizations -eq 0; then
CFLAGS="${CFLAGS} -DARM_FEATURES"
SFLAGS="${SFLAGS} -DARM_FEATURES"
fi
fi
fi
- fi
-
- cat > $test.c << EOF
-int main() { return 0; }
-EOF
- if try $CC -w -c $SFLAGS $test.c -mfloat-abi=softfp &&
- try $LDSHARED $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
- floatabi="-mfloat-abi=softfp"
- else
- if try $CC -w -c $SFLAGS $test.c -mfloat-abi=hard &&
- try $LDSHARED $LDSHAREDFLAGS $LDFLAGS -o $test$shared_ext $test.o $LDSHAREDLIBC; then
- floatabi="-mfloat-abi=hard"
- fi
- fi
-
- if [ -z $floatabi ]; then
- echo "ARM floating point arch not auto-detected" | tee -a configure.log
- else
- echo "ARM floating point arch: ${floatabi}" | tee -a configure.log
- CFLAGS="${CFLAGS} ${floatabi}"
- SFLAGS="${SFLAGS} ${floatabi}"
- fi
-
- if test $without_optimizations -eq 0; then
if test $buildacle -eq 1; then
check_acle_compiler_flag