debian: use a specific directory for .gcda files
Otherwise the .gcda files may end into .libs/ and be destroyed by make clean. * debian/rules (PRO1SETUP, PRO2SETUP): Here.
This commit is contained in:
parent
b1007a3d03
commit
c1d6d13d6e
1 changed files with 9 additions and 6 deletions
15
debian/rules
vendored
15
debian/rules
vendored
|
|
@ -34,12 +34,14 @@ LTOSETUP = \
|
||||||
AR_FLAGS='cru --plugin $(LTOPLUG)' \
|
AR_FLAGS='cru --plugin $(LTOPLUG)' \
|
||||||
RANLIB='ranlib --plugin $(LTOPLUG)' \
|
RANLIB='ranlib --plugin $(LTOPLUG)' \
|
||||||
VALGRIND=false
|
VALGRIND=false
|
||||||
PRO1SETUP = \
|
GCDADIR := $(shell pwd)/gcda
|
||||||
CFLAGS='-flto -fprofile-generate' \
|
PROFW = -Wno-error=coverage-mismatch
|
||||||
CXXFLAGS='-flto -fprofile-generate'
|
PRO1SETUP = \
|
||||||
PRO2SETUP = \
|
CFLAGS='-flto -fprofile-generate=$(GCDADIR) $(PROFW)' \
|
||||||
CFLAGS='-flto -fprofile-use' \
|
CXXFLAGS='-flto -fprofile-generate=$(GCDADIR) $(PROFW)'
|
||||||
CXXFLAGS='-flto -fprofile-use'
|
PRO2SETUP = \
|
||||||
|
CFLAGS='-flto -fprofile-use=$(GCDADIR) $(PROFW)' \
|
||||||
|
CXXFLAGS='-flto -fprofile-use=$(GCDADIR) $(PROFW)'
|
||||||
PYDEFAULT=$(shell py3versions --default)
|
PYDEFAULT=$(shell py3versions --default)
|
||||||
PYOTHERS=$(filter-out $(PYDEFAULT), $(shell py3versions --supported))
|
PYOTHERS=$(filter-out $(PYDEFAULT), $(shell py3versions --supported))
|
||||||
|
|
||||||
|
|
@ -57,6 +59,7 @@ FLTOWORKAROUND = perl -pi -e s/-flto// bin/Makefile
|
||||||
# We want to build Spot twice: once to get profile data, and a second
|
# We want to build Spot twice: once to get profile data, and a second
|
||||||
# time to use it.
|
# time to use it.
|
||||||
override_dh_auto_configure:
|
override_dh_auto_configure:
|
||||||
|
mkdir -p $(GCDADIR)
|
||||||
dh_auto_configure -- $(PRO1SETUP) $(LTOSETUP) \
|
dh_auto_configure -- $(PRO1SETUP) $(LTOSETUP) \
|
||||||
--disable-devel --enable-optimizations \
|
--disable-devel --enable-optimizations \
|
||||||
--disable-static PYTHON=/usr/bin/$(PYDEFAULT)
|
--disable-static PYTHON=/usr/bin/$(PYDEFAULT)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue