d/rules: export RUSTFLAGS only on architecture that needs it

This commit is contained in:
Henry-Nicolas Tourneur
2020-11-10 14:57:09 +00:00
committed by Dorota Czaplejewicz
parent 42483234e3
commit 540c4d9c05

3
debian/rules vendored
View File

@ -3,7 +3,10 @@
export CARGO_HOME = $(CURDIR)/debian/cargo
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# the below avoids an FTBFS on mips64el with a GOT > 64kb
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),mips64el)
export RUSTFLAGS = -Ctarget-feature=+xgot
endif
distrel := $(shell lsb_release --codename --short)
ifneq (,$(filter $(distrel),buster amber))