diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules index 97f2f071d..460e55720 100755 --- a/debian/rules +++ b/debian/rules @@ -14,7 +14,13 @@ SED_RUSTC_BUILDDEP := sed -ne "/^Build-Depends:/,/^[^[:space:]\#]/{/^ *rustc:nat LOCAL_RUST_VERSION := $(shell rustc --version --verbose | sed -ne 's/^release: //p') include /usr/share/dpkg/buildflags.mk -export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS +# needed for cross-compilation to avoid passing host CFLAGS to the BUILD +# compiler +export TARGET_CFLAGS = $(CFLAGS) +export TARGET_CXXFLAGS = $(CXXFLAGS) +export TARGET_CPPFLAGS = $(CPPFLAGS) +export TARGET_LDFLAGS = $(LDFLAGS) +unexport CFLAGS CXXFLAGS CPPFLAGS LDFLAGS export CARGO_HOME = $(CURDIR)/debian/cargo # Defines DEB_*_RUST_TYPE triples @@ -403,7 +409,7 @@ ifeq (true,$(BUILD_DOCS)) topdir=$$(echo "$$file" | sed 's,^$(DEB_DESTDIR)/usr/share/doc/rust/html/,,; s,/[^/]*$$,/,; s,^[^/]*$$,,; s,[^/]\+/,../,g'); \ sed -i \ -e "s,https://\(doc\|www\).rust-lang.org/\(favicon.ico\|logos/rust-logo-32x32-blk.png\),$${topdir}rust-logo-32x32-blk.png," \ - -e 's,<img src="https://github.com/rust-lang/rust-clippy/workflows/Clippy%20Test/badge.svg[^"]*" alt="\([^"]*\)" />,<span class="deb-privacy-replace--github.com-badge">\1</span>,g' \ + -e 's,<img src="https://github.com/rust-lang/rust-clippy/workflows/Clippy%20Test%20(bors)/badge.svg[^"]*" alt="\([^"]*\)" />,<span class="deb-privacy-replace--github.com-badge">\1</span>,g' \ -e 's,<img src="https://img.shields.io/[^"]*" alt="\([^"]*\)" />,<span class="deb-privacy-replace--shields-io">\1</span>,g' "$$file"; \ done find $(DEB_DESTDIR) \( -iname '*.html' -empty -o -name .lock -o -name '*.inc' \) -delete; |