我尝试交叉编译freetype,但它的configure / autoconf -cruft 似乎失败了。配置输出为:
cd builds/unix; /bin/sh ./configure '--host=le32-unknown-nacl' 'CC_BUILD=/usr/bin/cc'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... le32-unknown-nacl
checking for le32-unknown-nacl-gcc... /home/andreas/Projects/emscripten/emcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
奇怪的是它build
是host
不同的,所以我真的不明白,为什么它认为它不会交叉编译。有谁知道如何强制配置脚本使用交叉编译?