]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- if _enable_debug_packages 1 then add -ggdb -Wall
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 31 May 2004 15:05:44 +0000 (15:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.154

rpm.macros

index e7cc33cb1773a7b12a71e7c30ae51c338172676c..f4f7e1c2fe46da2101c1215305b28038e12297b4 100644 (file)
@@ -1,5 +1,8 @@
 # PLD rpm macros
 
+# other macros
+%_enable_debug_packages 1
+
 %__id          @__ID@
 %__id_u                %{__id} -u 
 %__chown_Rhf           @__CHOWN_RHF@
 #-----------------------------------------------------------------
 # 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
This page took 0.136221 seconds and 4 git commands to generate.