您的位置:首页 > 其它

Cross compile problem: cannot run test program while cross compiling

2015-06-27 01:43 435 查看
We have to modify the configure.ac or configure.in file and delete the check which is causing problems. Cross compiling with autoconf is pretty tricky and usually needs some tweaking of the config files or makefiles to work.

or we can echo variant into .cache file, such as:

echo ac_cv_type_long_long=yes>$ARCH-linux.cache


and then run configure as:

./configure --host=$ARCH-linux --prefix=$ROOTFS_DIR/usr --cache-file=$ARCH-linux.cache


/article/1670054.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: