From a7cd6c94c98aae408915677c2bf475578e5cb64f Mon Sep 17 00:00:00 2001 From: Severin Gehwolf Date: Wed, 28 Nov 2018 11:09:36 +0100 Subject: [PATCH] Refactor _find_debuginfo_opts -g - Used '%global over '%define' - Added a comment explaining what this does. --- java-1.8.0-openjdk.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java-1.8.0-openjdk.spec b/java-1.8.0-openjdk.spec index 667dba7..bbd72af 100644 --- a/java-1.8.0-openjdk.spec +++ b/java-1.8.0-openjdk.spec @@ -21,7 +21,11 @@ # Enable release builds by default on relevant arches. %bcond_without release -%define _find_debuginfo_opts -g +# The -g flag says to use strip -g instead of full strip on DSOs or EXEs. +# This fixes detailed NMT and other tools which need minimal debug info. +# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879 +%global _find_debuginfo_opts -g + # note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros # also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch # see the difference between global and define: