configure: error: invalid variable name: `'

今天在交叉编译一个编解码库的时候,出现一个莫名其妙的报错,一直找不到原因,后来无意中删除了一个空格,才发现就是这个空格造成的错误。

./configure --host=arm-linux LDFLAGS =-L/home2/liuxueneng/cedarx/lib .....一长串配置.........

 出现报错如下

configure: WARNING: you should use --build, --host, --target
configure: WARNING: you should use --build, --host, --target
configure: error: invalid variable name: `'

 试了很多次只要不加LDFLAGS那一段是可以通过的。

后来注意到LDFLAGS后面的那个空格,觉得有可能有问题于是先把他去掉了,果然就通过了。

 

猜你喜欢

转载自www.cnblogs.com/tid-think/p/10525022.html