re-enable fixfilepath for use with dpkg-buildflags in debian/rules as

it has been supported since clang-10
This commit is contained in:
Erik Maciejewski 2021-10-21 21:14:48 -07:00
parent dd07b033af
commit feeebfb2e9

9
debian/rules vendored
View File

@ -40,11 +40,11 @@ include /usr/share/dpkg/architecture.mk
CONFIGURE_EXTRA =
# set up global build flags (dpkg-buildflags)
# disable lto
export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
# these are handled on a per stage / build basis
export DEB_CFLAGS_MAINT_STRIP=-g -O2
export DEB_CXXFLAGS_MAINT_STRIP=-g -O2
# additional global build flags
export DEB_CFLAGS_MAINT_APPEND=-Wno-unused-command-line-argument
export DEB_CXXFLAGS_MAINT_APPEND=-Wno-unused-command-line-argument
@ -100,11 +100,6 @@ ifneq (,$(filter $(DEB_HOST_ARCH),i386 armel mips mipsel powerpc powerpcspe risc
LDFLAGS_EXTRA += -latomic
endif
# Ensure fixfilepath feature is disabled. The fixfilepath feature
# sets a -ffile-prefix-map flag, which is only supported in clang-10.
# Disable also lto
export DEB_BUILD_MAINT_OPTIONS=reproducible=-fixfilepath optimize=-lto
ifeq ($(shell dpkg --compare-versions $(shell dpkg-query -W -f '$${Version}' g++-$(GCC_VERSION)) lt 4.9-20140411-1~ ; echo $$?),0)
# Too old version of gcc. Force 4.9
GCC_VERSION := 4.9