d/rules: export RUSTFLAGS only on architecture that needs it
Altered from original to take reproducibility into account. Not tested on mips64el.
This commit is contained in:
committed by
Dorota Czaplejewicz
parent
1fe6d65525
commit
696d77293e
11
debian/rules
vendored
11
debian/rules
vendored
@ -2,12 +2,21 @@
|
|||||||
|
|
||||||
export CARGO_HOME = $(CURDIR)/debian/cargo
|
export CARGO_HOME = $(CURDIR)/debian/cargo
|
||||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
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)
|
||||||
|
xgot = -Ctarget-feature=+xgot
|
||||||
|
else
|
||||||
|
xgot =
|
||||||
|
endif
|
||||||
|
|
||||||
# Don't use paths that may change between builds.
|
# Don't use paths that may change between builds.
|
||||||
# No need to care about $HOME
|
# No need to care about $HOME
|
||||||
# because Cargo will not place any source in ~/.cargo.
|
# because Cargo will not place any source in ~/.cargo.
|
||||||
# The build directory is a subdirectory of the source directory,
|
# The build directory is a subdirectory of the source directory,
|
||||||
# so it doesn't need to be explicitly taken care of.
|
# so it doesn't need to be explicitly taken care of.
|
||||||
export RUSTFLAGS = --remap-path-prefix=$(CURDIR)=/remap-pwd
|
export RUSTFLAGS = --remap-path-prefix=$(CURDIR)=/remap-pwd $(xgot)
|
||||||
|
|
||||||
|
|
||||||
distrel := $(shell lsb_release --codename --short)
|
distrel := $(shell lsb_release --codename --short)
|
||||||
|
|||||||
Reference in New Issue
Block a user