File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1549,14 +1549,25 @@ if test "$IS_ARM32" != "0" && test "$IS_ANDROID_OS" = "0"; then
1549
1549
[ AC_MSG_RESULT ( [ no] ) ]
1550
1550
)
1551
1551
1552
- CXXFLAGS="-march=armv7-a -mfpu=neon"
1552
+ # Auto is a GCC 11 option
1553
+ CXXFLAGS="-march=armv7-a -mfpu=auto"
1553
1554
AC_MSG_CHECKING ( [ if $CXXNAME supports $CXXFLAGS] )
1554
1555
XXX_COMPILE_IFELSE(
1555
1556
[ AC_LANG_SOURCE ( [ `cat TestPrograms/test_arm_neon.cpp`] ) ] ,
1556
1557
[ AC_MSG_RESULT ( [ yes] ) ] ,
1557
1558
[ AC_MSG_RESULT ( [ no] ) ]
1558
1559
)
1559
1560
1561
+ if test "$retval" != "0"; then
1562
+ CXXFLAGS="-march=armv7-a -mfpu=neon"
1563
+ AC_MSG_CHECKING ( [ if $CXXNAME supports $CXXFLAGS] )
1564
+ XXX_COMPILE_IFELSE(
1565
+ [ AC_LANG_SOURCE ( [ `cat TestPrograms/test_arm_neon.cpp`] ) ] ,
1566
+ [ AC_MSG_RESULT ( [ yes] ) ] ,
1567
+ [ AC_MSG_RESULT ( [ no] ) ]
1568
+ )
1569
+ fi
1570
+
1560
1571
if test "$retval" = "0"; then
1561
1572
AC_SUBST ( [ CRYPTOPP_AES_FLAG] , [ $CXXFLAGS] )
1562
1573
AC_SUBST ( [ CRYPTOPP_ARIA_FLAG] , [ $CXXFLAGS] )
You can’t perform that action at this time.
0 commit comments