【问题标题】:how to remove -g option for g++ in Makefile generated by autoconf/automake如何在由 autoconf/automake 生成的 Makefile 中删除 g++ 的 -g 选项
【发布时间】:2016-01-19 02:29:45
【问题描述】:

我使用 automake/autoconf 为我的项目生成 Makefile,发现这些 Makefile 使用 -g 选项调用 g++。 我完全不知道我在哪里设置了它,那么我该如何删除它呢?

【问题讨论】:

    标签: g++ autoconf automake


    【解决方案1】:

    CFLAGS 的 autoconf 的默认设置是-O2 -g。如果你想覆盖它,你可以这样做

    ./configure CFLAGS="-O2"
    

    这将完全避免传递 -g。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-28
      • 1970-01-01
      • 2010-11-16
      • 2012-08-05
      • 1970-01-01
      • 2011-05-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多