[med-svn] r14335 - in trunk/packages/phyml/trunk/debian: . patches
Andreas Tille
tille at alioth.debian.org
Mon Aug 5 08:01:30 UTC 2013
Author: tille
Date: 2013-08-05 08:01:29 +0000 (Mon, 05 Aug 2013)
New Revision: 14335
Added:
trunk/packages/phyml/trunk/debian/patches/
trunk/packages/phyml/trunk/debian/patches/series
trunk/packages/phyml/trunk/debian/patches/sse_only_if_supported.patch
Modified:
trunk/packages/phyml/trunk/debian/changelog
Log:
Use -msse only on i386 and amd64
Modified: trunk/packages/phyml/trunk/debian/changelog
===================================================================
--- trunk/packages/phyml/trunk/debian/changelog 2013-08-05 07:53:16 UTC (rev 14334)
+++ trunk/packages/phyml/trunk/debian/changelog 2013-08-05 08:01:29 UTC (rev 14335)
@@ -1,3 +1,11 @@
+phyml (2:20120412-2) unstable; urgency=low
+
+ * debian/patches/sse_only_if_supported.patch: Check architecture before
+ deciding to build using -msse
+ Closes: #718747
+
+ -- Andreas Tille <tille at debian.org> Mon, 05 Aug 2013 09:56:27 +0200
+
phyml (2:20120412-1) unstable; urgency=low
[ Charles Plessy ]
Added: trunk/packages/phyml/trunk/debian/patches/series
===================================================================
--- trunk/packages/phyml/trunk/debian/patches/series (rev 0)
+++ trunk/packages/phyml/trunk/debian/patches/series 2013-08-05 08:01:29 UTC (rev 14335)
@@ -0,0 +1 @@
+sse_only_if_supported.patch
Added: trunk/packages/phyml/trunk/debian/patches/sse_only_if_supported.patch
===================================================================
--- trunk/packages/phyml/trunk/debian/patches/sse_only_if_supported.patch (rev 0)
+++ trunk/packages/phyml/trunk/debian/patches/sse_only_if_supported.patch 2013-08-05 08:01:29 UTC (rev 14335)
@@ -0,0 +1,36 @@
+Author: Andreas Tille <tille at debian.org>
+LastChanged: Mon, 05 Aug 2013 09:56:27 +0200
+BugsClosed: http://bugs.debian.org/718747
+Description: Verify architecture whether we comiple on i386 or amd64 and
+ only in this case use -msse
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -48,6 +48,16 @@ AC_CHECK_FUNCS([floor pow rint sqrt strc
+ #;;
+ #esac
+
++case "${host}" in
++*i386*|*amd64*|*x86_64*)
++MSSE=-msse
++AC_MSG_NOTICE("On arch ${host} use MSSE = ${MSSE}")
++;;
++*)
++MSSE=
++AC_MSG_NOTICE("Do not use MSSE = ${MSSE} because not available on arch ${host}")
++;;
++esac
+
+ dnl CFLAGS="-O3 -fomit-frame-pointer -funroll-loops -Wall ${ARCH_flag}"
+ dnl CFLAGS="-O3 -Wfloat-equal -fomit-frame-pointer -funroll-loops"
+@@ -65,8 +75,8 @@ AC_ARG_ENABLE([debug],
+ [Remove optimization options and add debug informations.])])
+ AS_IF([test "x$enable_debug" = "xyes"],
+ [CFLAGS="-ansi -pedantic -Wall -std=c99 -O0 -g"],
+- dnl [CFLAGS="-ansi -pedantic -Wall -std=c99 -O2 -msse -fomit-frame-pointer -funroll-loops ${ARCH_flag}"])
+- [CFLAGS="-Wall -O2 -msse -fomit-frame-pointer -funroll-loops ${ARCH_flag}"])
++ dnl [CFLAGS="-ansi -pedantic -Wall -std=c99 -O2 ${MSSE} -fomit-frame-pointer -funroll-loops ${ARCH_flag}"])
++ [CFLAGS="-Wall -O2 ${MSSE} -fomit-frame-pointer -funroll-loops ${ARCH_flag}"])
+
+
+ AC_ARG_ENABLE([mpi],
More information about the debian-med-commit
mailing list