[SCM] SETI at home packaging branch, master, updated. debian/6.97_svn1409-1-23-g8c37c10

Steffen Moeller steffen_moeller at gmx.de
Sun Nov 25 22:12:01 UTC 2012


The following commit has been merged in the master branch:
commit 8c37c10cc21d1c312ded85eff6856b877233b872
Author: Steffen Moeller <steffen_moeller at gmx.de>
Date:   Sun Nov 25 23:11:33 2012 +0100

    Only adding -flto if gcc is other than 4.[456]

diff --git a/debian/rules b/debian/rules
index 96b135c..606d404 100755
--- a/debian/rules
+++ b/debian/rules
@@ -44,7 +44,15 @@ export LDFLAGS  := $(shell dpkg-buildflags --get LDFLAGS)
 # Append this to CFLAGS and CXXFLAGS.
 CFLAGS_APPEND += -O3
 CFLAGS_APPEND += -I/usr/include/boinc -I/usr/include/boinc/lib -I/usr/include/boinc/api
-CFLAGS_APPEND += -flto
+GCCVERSION=$(shell gcc --version | tr " " "\n" | egrep '^[0-9]+\.[0-9]+\.[0-9]+$$' | cut -f1,2 -d.)
+# gcc 4.6 on precise has issues while gcc 4.7 on sid is just fine
+ifneq (4.6,$(GCCVERSION))
+ifneq (4.5,$(GCCVERSION))
+ifneq (4.4,$(GCCVERSION))
+  CFLAGS_APPEND += -flto
+endif
+endif
+endif
 
 # Although all source file are C++, some handwritten rules in
 # client/Makefile.am seem to use CFLAGS only.

-- 
SETI at home packaging



More information about the pkg-boinc-commits mailing list