简体   繁体   English

Autotools配置无法识别的构建选项

[英]Autotools configure build option not recognized

I ran up into this glitch today, I am cross compiling many libraries for my linux system, and all except this zlib-1.2.8 works well. 我今天遇到了这个故障,我正在为我的linux系统交叉编译许多库,除了这个zlib-1.2.8之外的所有库都运行良好。

My configure command is: 我的configure命令是:

CFLAGS=-I/home/user/openwrt/openwrt/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/include/ 
LDFLAGS=-L/home/user/openwrt/openwrt/staging_dir/target-powerpc_8540_uClibc-0.9.33.2/lib/ 
./configure --build=x86_64-unknown-linux-gnu --host=powerpc-openwrt-linux-uclibcspe  
--prefix=/home/user/openwrt/openwrt/staging_dir/target-powerpc_8540_uClibc-0.9.33.2

The --build=x86_64-unknown-linux-gnu worked for all libraries, except this one. --build=x86_64-unknown-linux-gnu适用于所有库,除了这个库。

THe error: 错误:

unknown option: --build=x86_64-unknown-linux-gnu
./configuer aborting

What is wrong? 怎么了? Please suggest. 请建议。

It's because the configure script is not the usual one, but written especially for zlib, so the usual assumptions don't apply. 这是因为配置脚本不是常用的,但是特别针对zlib编写,因此通常的假设不适用。

What you need for the --build=x86_64-unknown-linux-gnu is --arches="-arch x86_64" 你需要什么--build = x86_64-unknown-linux-gnu是--arches =“ - arch x86_64”

I don't think that you can cross-compile with the resulting Makefile without some tweaks (to CFLAGS probably). 我不认为你可以使用生成的Makefile进行交叉编译而不需要进行一些调整(可能是CFLAGS)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM