[opensuse-buildservice] how to check for debug build?
osc build has two knobs --disable-debuginfo and --debuginfo. How can I check in the spec file which mode is currently enabled? I want to do something like this: %if %{some_dbg_flag} tool --do-debug %else tool --no-debug %endif Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Olaf Hering <olaf@aepfle.de> writes:
osc build has two knobs --disable-debuginfo and --debuginfo. How can I check in the spec file which mode is currently enabled? I want to do something like this:
Building debuginfo has nothing to do with enabling debug mode. If you want to do the latter use some --with-debug flag. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Tue, Oct 07, Andreas Schwab wrote:
Olaf Hering <olaf@aepfle.de> writes:
osc build has two knobs --disable-debuginfo and --debuginfo. How can I check in the spec file which mode is currently enabled? I want to do something like this:
Building debuginfo has nothing to do with enabling debug mode. If you want to do the latter use some --with-debug flag.
So I rewrite my pseudo code: %if %{some_dbginfo_flag} tool --do-debuginfo %else tool --no-debuginfo %endif GOTO 10 Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Olaf Hering <olaf@aepfle.de> writes:
%if %{some_dbginfo_flag} tool --do-debuginfo %else tool --no-debuginfo %endif
Tell the tool not to ignore CFLAGS. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Tue, Oct 07, Andreas Schwab wrote:
Tell the tool not to ignore CFLAGS.
The tool does not know about CFLAGS. Thanks anyway. Olaf -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Olaf Hering