传递包含逗号的选项来配置脚本 (Linux)
我有一个配置脚本,我需要传递一个包含逗号的选项。现在,如果没有逗号,我可以在周围放置一些“,以使配置识别整个字符串:
./configure --with-arpack="-Wl,-rpath,/my/path -L/my/path -larpack"
但是逗号被解释为选项分隔符,因此脚本仅将 -Wl 识别为移交的选项:
=== With linker flags: -Wl -rpath /my/path -L/my/path -larpack
如何我能解决这个问题吗
?
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 --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:
=== With linker flags: -Wl -rpath /my/path -L/my/path -larpack
How can I get around this?
Sebastian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 LDFLAGS 和 LIBS 代替:
Use LDFLAGS and LIBS instead: