From 8a3e0adab79361ad2e43b023dedc9ce2f745935f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 8 Sep 2023 10:39:03 +0200 Subject: [PATCH] fix FTCBF by setting TARGET flags (Closes: #1050975) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Helmug Grohne Signed-off-by: Fabian Grünbichler --- debian/rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index a610da0adc..460e557206 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 -- 2.39.2