mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-11 08:45:24 +00:00
re-enable fixfilepath for use with dpkg-buildflags in debian/rules as
it has been supported since clang-10
This commit is contained in:
parent
dd07b033af
commit
feeebfb2e9
9
debian/rules
vendored
9
debian/rules
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user