Red Hat gdb debugging helper.
authorlace <>
Tue, 15 Aug 2006 22:23:24 +0000 (22:23 +0000)
committerlace <>
Tue, 15 Aug 2006 22:23:24 +0000 (22:23 +0000)
src/gdb.spec-debug.patch [new file with mode: 0644]

diff --git a/src/gdb.spec-debug.patch b/src/gdb.spec-debug.patch
new file mode 100644 (file)
index 0000000..aff4697
--- /dev/null
@@ -0,0 +1,29 @@
+--- gdb.spec-orig      2006-07-14 07:18:22.000000000 +0200
++++ gdb.spec   2006-07-25 13:16:58.000000000 +0200
+@@ -341,7 +341,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="-ggdb3"
+ enable_build_warnings=""
+ %ifarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64
+@@ -346,7 +346,7 @@
+ enable_build_warnings=""
+ %ifarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64
+-enable_build_warnings="--enable-gdb-build-warnings=,-Werror"
++#enable_build_warnings="--enable-gdb-build-warnings=,-Werror"
+ %endif
+ ../configure \
+@@ -355,6 +356,7 @@
+       --infodir=%{_infodir}\
+       $enable_build_warnings \
+         --with-separate-debug-dir=/usr/lib/debug \
++      --enable-static --disable-shared --disable-werror --enable-debug \
+     %{_target_platform}
+ make -k