相关疑难解决方法(0)

GNU autotools:调试/发布目标?

我一直在寻找这个:我目前正在将一个中型程序转换为autotools,来自基于Eclipse的方法(带有makefile)

我总是习惯于进行"调试"构建,包含所有调试符号和没有优化,以及"发布"构建,没有调试符号和最佳优化.

现在我试图用autotools以某种方式复制它,所以我可以(也许)做类似的事情:

./configure
make debug
Run Code Online (Sandbox Code Playgroud)

哪个会有所有调试符号而没有优化,以及哪里:

./configure
make
Run Code Online (Sandbox Code Playgroud)

会导致"发布"版本(默认)

PS:我已经阅读了关于--enable-debug标志/功能的内容,但在我目前的(简单)设置​​中,使用它无法识别 configure

c++ automake autoconf autotools

58
推荐指数
3
解决办法
4万
查看次数

标签 统计

autoconf ×1

automake ×1

autotools ×1

c++ ×1