Skip to content

Commit

Permalink
fixed lto for newer gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
velnias75 committed May 8, 2015
1 parent e988772 commit 28d4722
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ DPKG_EXPORT_BUILDFLAGS = 1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

GRAPHITE = -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize
LTO = -flto -fuse-linker-plugin -flto-compression-level=9 -flto-partition=1to1
LTO = -flto -fuse-linker-plugin -flto-compression-level=9 -flto-partition=1to1 -fuse-ld=gold

DEB_CPPFLAGS_MAINT_APPEND := -DNDEBUG
DEB_CFLAGS_MAINT_APPEND := -fomit-frame-pointer $(GRAPHITE) $(LTO)
DEB_CXXFLAGS_MAINT_APPEND := -fomit-frame-pointer $(GRAPHITE) $(LTO)
DEB_LDFLAGS_MAINT_APPEND := $(CXXFLAGS) $(GRAPHITE) $(LTO)

export NM=gcc-nm
export AR=gcc-ar
export RANLIB=gcc-ranlib

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
Expand Down

0 comments on commit 28d4722

Please sign in to comment.