On 29.03.2012 23:29, Wietse Venema wrote: > Michael Tokarev: >> On 29.03.2012 22:23, Wietse Venema wrote: >> [] >>> Perhaps you can suggest a way for makedefs to parse out the CPU >>> type from "uname -whatever" and use that in the library search? >> >> This isn't about uname. Uname may return one thing, yet postfix >> may be building for entirely another -- that's the main motivation >> behind multiarch. > > The makedefs script assumes Postfix is built for the current > architecture. It needs command-line overrides to cross-compile > (at least that't the version I am working with).
It is possible to override $CC and $LD -- this should be enough for cross-compilation already. Note that the resulting binaries - even being foreign to the host architecture - may actually work just fine, using some emulator layer like qemu-user (www.qemu.org). So even build system tries to run executables it just built, the build process may complete successfully. Thanks, /mjt