[med-svn] [diamond-aligner] 07/07: Drop -march=native flag

Andreas Tille tille at debian.org
Fri Jan 27 11:04:12 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository diamond-aligner.

commit 1ae14675299710f8210f1cdfe0ec2b822b04563b
Author: Andreas Tille <tille at debian.org>
Date:   Fri Jan 27 12:03:49 2017 +0100

    Drop -march=native flag
---
 debian/changelog                            |  7 +++++++
 debian/patches/drop_march_native_flag.patch | 21 +++++++++++++++++++++
 debian/patches/series                       |  1 +
 3 files changed, 29 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d781106..eaff542 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+diamond-aligner (0.8.34+dfsg-2) UNRELEASED; urgency=medium
+
+  * Drop -march=native flag
+    Closes: #852753
+
+ -- Andreas Tille <tille at debian.org>  Fri, 27 Jan 2017 12:00:50 +0100
+
 diamond-aligner (0.8.34+dfsg-1) unstable; urgency=medium
 
   * Initial release (Closes: #850242)
diff --git a/debian/patches/drop_march_native_flag.patch b/debian/patches/drop_march_native_flag.patch
new file mode 100644
index 0000000..1ef6bd6
--- /dev/null
+++ b/debian/patches/drop_march_native_flag.patch
@@ -0,0 +1,21 @@
+Description: Drop -march=native flag
+ The compiler flag -march=native is inappropriate for Debian (and any other
+ binary-based distribution) because it limits the portability of the resulting
+ executables.
+Bug-Debian: https://bugs.debian.org/852753
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 27 Jan 2017 12:00:50 +0100
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,10 +10,6 @@ if(BUILD_STATIC)
+ endif()
+ 
+ include(CheckCXXCompilerFlag)
+-CHECK_CXX_COMPILER_FLAG("-march=native" COMPILER_SUPPORTS_MARCHNATIVE)
+-if(COMPILER_SUPPORTS_MARCHNATIVE)
+-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
+-endif()
+ 
+ find_package(ZLIB REQUIRED)
+ find_package(Threads REQUIRED)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7261679
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+drop_march_native_flag.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/diamond-aligner.git



More information about the debian-med-commit mailing list