Message ID | 20210411101422.7092-3-bage@linutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | builddeb: make deb building more flexible | expand |
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index 3d2d4b033e44..2fa149796791 100755 --- a/scripts/package/mkdebian +++ b/scripts/package/mkdebian @@ -223,6 +223,14 @@ fi cat <<EOF > debian/rules #!$(command -v $MAKE) -f +include /usr/share/dpkg/architecture.mk + +ifneq (\$(DEB_BUILD_GNU_TYPE),\$(DEB_HOST_GNU_TYPE)) +ifeq (\$(origin CC),default) +CC := \$(DEB_HOST_GNU_TYPE)-gcc +endif +endif + srctree ?= . build-indep: