--- fpcbuild-2.6.4/fpcsrc/packages/gdbint/src/gdbint.pp~ 2016-04-01 17:53:51.000000000 +0900
+++ fpcbuild-2.6.4/fpcsrc/packages/gdbint/src/gdbint.pp 2016-04-01 23:08:14.978738263 +0900
-@@ -59,6 +59,28 @@
+@@ -59,6 +59,40 @@
{$undef GDB_VERSION_RECOGNIZED}
++{ 8.0 }
++{$ifdef GDB_V800}
++ {$info using gdb 8.0.x}
++ {$define GDB_VERSION_RECOGNIZED}
++ {$define GDB_VER_GE_800}
++ {$LINKLIB stdc++}
++{$endif}
++
++{$ifdef GDB_VER_GE_800}
++ {$define GDB_VER_GE_711}
++{$endif}
++
+{ 7.11.x }
+{$ifdef GDB_V711}
+ {$info using gdb 7.11.x}
#
# Conditional build:
%bcond_without ide # FPC IDE
+%bcond_with gdb # GDB support in FPC IDE
%bcond_without doc # documentation
Summary: Free Pascal - 32-bit Pascal compiler
%if %{with ide}
BuildRequires: babeltrace-devel
BuildRequires: expat-devel
-BuildRequires: gdb-lib >= 7.2-7
+%{?with_gdb:BuildRequires: gdb-lib >= 7.2-7}
BuildRequires: guile-devel
BuildRequires: python-devel
BuildRequires: readline-devel
RELEASE="1" \
BASEINSTALLDIR=%{_libdir}/%{name}/%{version} \
BININSTALLDIR=%{_bindir} \
- GDBLIBDIR=%{_libdir} \
+ %{?with_gdb:GDBLIBDIR=%{_libdir}} \
+ %{!?with_gdb:NOGDB=YES} \
DATA2INC="$DATA2INC" \
PP="$NEWPP" \
FPC="$NEWPP" \