--- gdb.spec.orig 2007-08-19 22:31:15.000000000 +0200 +++ gdb.spec 2007-08-19 22:33:28.000000000 +0200 @@ -554,7 +554,8 @@ # at least one warning, and stop the compilation. The whole configury # line needs to be cleaned up. -export CFLAGS="$RPM_OPT_FLAGS" +#export CFLAGS="$RPM_OPT_FLAGS" +export CFLAGS="$RPM_OPT_FLAGS -O0 -ggdb2" enable_build_warnings="--enable-gdb-build-warnings=,-Wno-unused" %ifarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64 @@ -575,6 +576,7 @@ %else --without-libunwind \ %endif + --enable-static --disable-shared --enable-debug \ %{_target_platform} make %{?_smp_mflags}