diff -Nru lz4-0.0~r131/debian/changelog lz4-0.0~r131/debian/changelog --- lz4-0.0~r131/debian/changelog 2016-04-17 21:49:12.000000000 +0000 +++ lz4-0.0~r131/debian/changelog 2016-04-18 12:14:28.000000000 +0000 @@ -1,3 +1,9 @@ +lz4 (0.0~r131-2ubuntu2) xenial; urgency=medium + + * Don't use profile guided optimization for the build. + + -- Matthias Klose Mon, 18 Apr 2016 11:33:00 +0200 + lz4 (0.0~r131-2ubuntu1) xenial; urgency=medium * Build using -O3 by default; this papers over a test suite failure diff -Nru lz4-0.0~r131/debian/rules lz4-0.0~r131/debian/rules --- lz4-0.0~r131/debian/rules 2016-04-17 21:47:57.000000000 +0000 +++ lz4-0.0~r131/debian/rules 2016-04-18 09:35:33.000000000 +0000 @@ -14,6 +14,8 @@ DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) PREFIX:= /usr +#use_pgo := yes + ifeq ($(origin CC),default) CC := $(DEB_HOST_GNU_TYPE)-gcc endif @@ -37,10 +39,14 @@ dh $@ override_dh_auto_build: +ifeq ($(use_pgo),yes) $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS) -fprofile-generate" $(MAKE) CC=$(CC) test $(MAKE) CC=$(CC) clean $(MAKE) CC=$(CC) CFLAGS="$(CFLAGS) -fprofile-use" +else + dh_auto_build -- CC=$(CC) +endif override_dh_auto_install: dh_auto_install -- CC=$(CC)