#-----------------------------------------------------------------
# CFLAGS and LDFLAGS used to build
-#%debuginfocflags -ggdb
+%debuginfocflags %{expand:%%define dic_%{_enable_debug_packages} %{_enable_debug_packages}}%{?dic_0:}%{?dic_1:-ggdb}%{expand:%%undefine dic_%{_enable_debug_packages}}
%debugcflags -O0 -g -Wall
%rpmcflags %{?debug:%debugcflags}%{!?debug:%optflags}%{?debuginfocflags: %debuginfocflags}