+option pie
[nethome.git] / src / gdb.spec-debug.patch
1 --- gdb.spec-orig       2006-07-14 07:18:22.000000000 +0200
2 +++ gdb.spec    2006-07-25 13:16:58.000000000 +0200
3 @@ -341,7 +341,9 @@
4  # at least one warning, and stop the compilation.  The whole configury
5  # line needs to be cleaned up.
6  
7 -export CFLAGS="$RPM_OPT_FLAGS"
8 +#export CFLAGS="$RPM_OPT_FLAGS"
9 +export CFLAGS="$RPM_OPT_FLAGS -O0 -ggdb2"
10 +sed -i -e 's/ -Wuninitialized / -Wno-uninitialized /g' ../gdb/configure
11  
12  enable_build_warnings=""
13  %ifarch %{ix86} alpha ia64 ppc s390 s390x x86_64 ppc64
14 @@ -355,6 +356,7 @@
15         --infodir=%{_infodir}\
16         $enable_build_warnings \
17          --with-separate-debug-dir=/usr/lib/debug \
18 +       --enable-static --disable-shared --enable-debug \
19      %{_target_platform}
20  
21  make -k