Package: asterisk / 1:13.14.1~dfsg-2+deb9u4

no_native_arch.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
From: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Subject: disable building asterisk with -march=native
Bug-Debian: https://bugs.debian.org/842917
Forwarded: no

Don't add -march=native to standard CFLAGS. We need a generic binary.

--- a/build_tools/cflags.xml
+++ b/build_tools/cflags.xml
@@ -134,7 +134,7 @@
 		</member>
 		<member name="BUILD_NATIVE" displayname="Allow compiler to generate code optimized for the CPU on which the build is performed.">
 			<support_level>core</support_level>
-			<defaultenabled>yes</defaultenabled>
+			<defaultenabled>no</defaultenabled>
 			<depend>native_arch</depend>
 		</member>
 	</category>