1

假设我用自动工具编译了一个项目(不是我自己的)并传递了一些标志来配置。现在我想再次编译同一个项目,但配置标志略有不同。有没有办法告诉配置脚本使用旧标志,但用一些额外的标志更新它们?

4

1 回答 1

1

I would love to see an easier approach, but to simply add flags you can do:

sed -i '/^ac_configure_extra_args=/s/$/--new-flag --other-flag/' config.status
./config.status --recheck

Normally, I manually edit config.status to do this, and not all sed support -i, but you get the idea. Change the original flags as they are defined in config.status to be the flags you want.

Another option is to cut-n-paste the original configure invocation out of the top of config.log and edit it.

于 2013-02-25T16:45:57.860 回答