[SCM] BOINC packaging branch, master, updated. debian/7.0.33+dfsg-1-101-gacd0eca
Gianfranco Costamagna
costamagnagianfranco at yahoo.it
Mon Nov 26 21:28:35 UTC 2012
The following commit has been merged in the master branch:
commit 80c2b18a8847550d278d9ac22173e702a560c25d
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date: Mon Nov 26 00:08:25 2012 +0100
Adding -flto if gcc is other than 4.[456]
(link time optimisation).
See http://gcc.gnu.org/wiki/LinkTimeOptimization for details.
from Steffen
diff --git a/debian/rules b/debian/rules
index 0452a18..dc6c6d5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -105,10 +105,19 @@ ifeq ($(DEB_HOST_GNU_TYPE), i486-gnu)
#TYPE_FLAGS += --with-boinc-platform=i686-pc-hurd-gnu
endif
+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 += -flto
+endif
+endif
+endif
CFLAGS += -Wall
CXXFLAGS += -Wall
-LDFLAGS += -Wl,--as-needed
+LDFLAGS += -Wl,--as-needed -flto
# hurd needs the following
LDFLAGS += -Wl,--no-add-needed
--
BOINC packaging
More information about the pkg-boinc-commits
mailing list