]> git.tue.mpg.de Git - lopsub.git/commit
Support cross build pu
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Aug 2024 14:30:07 +0000 (16:30 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Aug 2024 17:24:17 +0000 (19:24 +0200)
commitba9134e3d0a4c1fc4afd62a6a368c59f026d68f5
tree7a1a53286f24b1df491483b697a807181b43b8fb
parent07b8a1ea47bc67fad9a3b886b8d26232c4ee25d2
Support cross build

The build system was not designed for cross compiling, so this
never worked. One problem is that we run both lopsubgen-stage1 and
lopsubgen during the build, so these executables must be built for
both the build and the host architecture.

This patch enables cross building by setting CC and CC_FOR_BUILD
like this:

make CC=/usr/bin/arm-linux-gnueabihf-gcc-11 CC_FOR_BUILD=cc

Object files and executables for the build system go to build
directory while files for the host system stay in the top level
directory as before.
Makefile
README