Commit 540c4d9c authored by Henry-Nicolas Tourneur's avatar Henry-Nicolas Tourneur Committed by Dorota Czaplejewicz
Browse files

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

parent 42483234
Pipeline #61403 passed with stages
in 43 minutes and 47 seconds
......@@ -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
export RUSTFLAGS = -Ctarget-feature=+xgot
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),mips64el)
export RUSTFLAGS = -Ctarget-feature=+xgot
distrel := $(shell lsb_release --codename --short)
ifneq (,$(filter $(distrel),buster amber))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment