瀏覽代碼

package/Makefile.in: pass '-g0' explicitly if !BR2_ENABLE_DEBUG

If BR2_ENABLE_DEBUG is not set, Buildroot did not pass any flag
to control debug level. This means that the build system of the package
itself would control it.

Instead, provide an explicit '-g0' (no debugging symbols) to get consistent
behavior across packages.

Suggested-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thomas De Schampheleire 4 年之前
父節點
當前提交
ebc1ded191
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package/Makefile.in

+ 3 - 0
package/Makefile.in

@@ -136,6 +136,9 @@ endif
 ifeq ($(BR2_OPTIMIZE_FAST),y)
 ifeq ($(BR2_OPTIMIZE_FAST),y)
 TARGET_OPTIMIZATION = -Ofast
 TARGET_OPTIMIZATION = -Ofast
 endif
 endif
+ifeq ($(BR2_ENABLE_DEBUG),)
+TARGET_DEBUGGING = -g0
+endif
 ifeq ($(BR2_DEBUG_1),y)
 ifeq ($(BR2_DEBUG_1),y)
 TARGET_DEBUGGING = -g1
 TARGET_DEBUGGING = -g1
 endif
 endif