我尝试交叉编译 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
是不同的,所以我真的不明白,为什么它认为它不会交叉编译。有谁知道如何强制配置脚本使用交叉编译?
答案 0 :(得分:0)
根据与Freetype一起分发的docs/INSTALL.CROSS
文件,您应该使用 --host=
和 --build=
选项。我不知道它是否会起作用,但它肯定值得一试。我也会像你一样添加CC_BUILD
。