[英]pass option containing comma to configure script (Linux)
I have a configure script where I need to pass an option that contains a comma. 我有一个配置脚本,需要在其中传递包含逗号的选项。 Now if it weren't for the comma I could put some "s around to make configure recognize the string as a whole: 现在,如果不是逗号,我可以放一些“”使configure整体上识别字符串:
./configure --with-arpack="-Wl,-rpath,/my/path -L/my/path -larpack"
But the commas are interpreted as option delimiters, so the script only recognizes -Wl as the handed over option: 但是逗号被解释为选项定界符,因此脚本仅将-Wl识别为移交的选项:
=== With linker flags: -Wl -rpath /my/path -L/my/path -larpack
How can I get around this? 我怎么能绕过这个?
Sebastian 塞巴斯蒂安
Use LDFLAGS and LIBS instead: 改用LDFLAGS和LIBS:
$ export LDFLAGS="-Wl,-rpath,/my/path -L/my/path"
$ export LIBS="-larpack"
$ ./configure --with-arpack
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.