I'm trying to build a debian package for an ARM64 platform on my AMD64 Ubuntu OS. I execute the command
debuild -us -uc --host-arch arm64
but get the warning
dpkg-architecture: warning: specified GNU system type aarch64-linux-gnu does not match CC system type x86_64-linux-gnu, try setting a correct CC environment variable
and so would like to know how to set the CC environment variable, as the warning advises. For my target OS I would typically use
/opt/l4t-gcc-toolchain-64-bit-32.1/install/bin/aarch64-linux-gnu-gcc
Thanks.