[gdb] Disable unexpected GDB directories relocatability.
Jan Kratochvil
jankratochvil at fedoraproject.org
Wed Jan 11 22:35:50 UTC 2012
commit a5cb59e730e456e3dbf1a834027453e282046b45
Author: Jan Kratochvil <jan.kratochvil at redhat.com>
Date: Wed Jan 11 23:35:43 2012 +0100
Disable unexpected GDB directories relocatability.
gdb.spec | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/gdb.spec b/gdb.spec
index 0623cfa..bd1be4a 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -28,7 +28,7 @@ Version: 7.4.50.%{snap}
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
-Release: 7%{?_with_upstream:.upstream}%{?dist}
+Release: 8%{?_with_upstream:.upstream}%{?dist}
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
Group: Development/Debuggers
@@ -968,8 +968,14 @@ else
FPROFILE_CFLAGS=""
fi
+# Prepare gdb/config.h first.
+make %{?_smp_mflags} CFLAGS="$CFLAGS $FPROFILE_CFLAGS" LDFLAGS="$FPROFILE_CFLAGS" maybe-configure-gdb
+perl -i.relocatable -pe 's/^(D\[".*_RELOCATABLE"\]=" )1(")$/${1}0$2/' gdb/config.status
+
make %{?_smp_mflags} CFLAGS="$CFLAGS $FPROFILE_CFLAGS" LDFLAGS="$FPROFILE_CFLAGS"
+! grep '_RELOCATABLE.*1' gdb/config.h
+
if [ "$fprofile" = "-fprofile" ]
then
cd gdb
@@ -1234,6 +1240,9 @@ fi
%{_infodir}/gdb.info*
%changelog
+* Wed Jan 11 2012 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.4.50.20120103-8.fc17
+- Disable unexpected GDB directories relocatability.
+
* Wed Jan 11 2012 Jan Kratochvil <jan.kratochvil at redhat.com> - 7.4.50.20120103-7.fc17
- Fix BuildRequires for RHEL compatibility (BZ 701131).
More information about the scm-commits
mailing list