diff options
author | Michael Vogt <mvo@ubuntu.com> | 2015-07-24 17:34:30 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2015-07-24 17:34:30 +0200 |
commit | 3b216cf6b6e082b7de4dfece65601a96d269d529 (patch) | |
tree | da4f87625817bc1d1ec589291d331528e55ccbd6 /debian/rules | |
parent | 439b024abe8fd6b8227a8b2869aab65a1186cfda (diff) |
updated for the gcc5 transition
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index f031cfddb..8805ab870 100755 --- a/debian/rules +++ b/debian/rules @@ -24,7 +24,11 @@ ifneq (,$(shell which dpkg-buildflags)) # make does not export to $(shell) so we need to workaround # (http://savannah.gnu.org/bugs/?10593) dpkg_buildflags = DEB_BUILD_MAINT_OPTIONS=hardening=+all dpkg-buildflags - export CXXFLAGS = $(shell $(dpkg_buildflags) --get CXXFLAGS) + + # workaround gcc-5 compile error + # (see https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1473674) + export CXXFLAGS = $(subst -O3,-O2,$(shell $(dpkg_buildflags) --get CXXFLAGS)) + export LDFLAGS = $(shell $(dpkg_buildflags) --get LDFLAGS) export CPPFLAGS = $(shell $(dpkg_buildflags) --get CPPFLAGS) else |