[Pkg-voip-commits] [asterisk] 01/01: no_native_arch.patch: avoid -march=native (Closes: #842917)
tzafrir at debian.org
tzafrir at debian.org
Wed Nov 2 11:33:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master
in repository asterisk.
commit c207ac9382a35c736f9269a773514d758ff7131b
Author: Tzafrir Cohen <tzafrir at debian.org>
Date: Wed Nov 2 13:30:45 2016 +0200
no_native_arch.patch: avoid -march=native (Closes: #842917)
Disable the build option BUILD_NATIVE, that adds building with
-march=native. This is not what we need in a generic distribution build.
---
debian/patches/no_native_arch.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/no_native_arch.patch b/debian/patches/no_native_arch.patch
new file mode 100644
index 0000000..923e13b
--- /dev/null
+++ b/debian/patches/no_native_arch.patch
@@ -0,0 +1,18 @@
+From: Tzafrir Cohen <tzafrir.cohen at 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>
diff --git a/debian/patches/series b/debian/patches/series
index b202bc2..ec440c7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -19,6 +19,7 @@ ilbc_disable
astdatadir
reenable
+no_native_arch.patch
smsq_enable.patch
aelparse_enable.patch
systemd.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git
More information about the Pkg-voip-commits
mailing list