From b5b201297cee140d68038a19d87167f3958e17c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Mon, 31 May 2004 15:05:44 +0000 Subject: [PATCH] - if _enable_debug_packages 1 then add -ggdb -Wall Changed files: rpm.macros -> 1.154 --- rpm.macros | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rpm.macros b/rpm.macros index e7cc33c..f4f7e1c 100644 --- a/rpm.macros +++ b/rpm.macros @@ -1,5 +1,8 @@ # PLD rpm macros +# other macros +%_enable_debug_packages 1 + %__id @__ID@ %__id_u %{__id} -u %__chown_Rhf @__CHOWN_RHF@ @@ -12,18 +15,18 @@ #----------------------------------------------------------------- # CFLAGS and LDFLAGS used to build +%if %{_enable_debug_packages}%{!?_enable_debug_packages:0} +%debuginfocflags -ggdb -Wall +%endif + %debugcflags -O0 -g -Wall -%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags} -# %rpmldflags %{!?debug:-s} +%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags:%debuginfocflags} %rpmldflags %{nil} # kernel compiler %kgcc gcc %kgcc_package gcc -# other macros -%_enable_debug_packages 1 - # Build system path macros. # %__libtoolize libtoolize --copy --force -- 2.44.0