forked from jengelh/asterisk
31 lines
946 B
Diff
31 lines
946 B
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2016-10-01 17:23:37.085881788 +0200
|
|
References: https://bugzilla.opensuse.org/show_bug.cgi?id=1002419
|
|
|
|
build: restore dropping of -march=native
|
|
|
|
---
|
|
configure.ac | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
Index: asterisk-14.0.0/configure.ac
|
|
===================================================================
|
|
--- asterisk-14.0.0.orig/configure.ac
|
|
+++ asterisk-14.0.0/configure.ac
|
|
@@ -1220,8 +1220,13 @@ AC_SUBST(AST_SHADOW_WARNINGS)
|
|
|
|
AC_MSG_CHECKING(for -march=native support)
|
|
if $(${CC} -march=native -S -o /dev/null -xc /dev/null > /dev/null 2>&1); then
|
|
- AC_MSG_RESULT(yes)
|
|
- AST_NATIVE_ARCH=1
|
|
+ if test "${CONFIG_CFLAGS}" = ""; then
|
|
+ AC_MSG_RESULT(yes)
|
|
+ AST_NATIVE_ARCH=1
|
|
+ else
|
|
+ AC_MSG_RESULT(user CFLAGS present)
|
|
+ AST_NATIVE_ARCH=
|
|
+ fi
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
AST_NATIVE_ARCH=0
|