Message ID | 20210525230139.6165-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 b317d26e2bbf..449e284a449c 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: