2005-08-29 Joel Sherrill <joel@OARcorp.com>

* setup.def, gdb/gdb.add: Use DESTDIR as override with gdb 6.3.
This commit is contained in:
Joel Sherrill
2005-08-29 17:18:16 +00:00
parent 9bd1f4e5a7
commit 7bcebf14a3
3 changed files with 22 additions and 13 deletions

View File

@@ -56,7 +56,7 @@ BuildRequires: ncurses-devel
%define _sim 1
%endif
%if "%{gdb_target}" == "sparc-rtems@osversion@"
%define _sim 0
%define _sim 1
%endif
@@ -106,6 +106,10 @@ cd ..
rm -rf $RPM_BUILD_ROOT
cd build
%if "%{gdb_version}" >= "6.3"
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install-info
%%else
make prefix=$RPM_BUILD_ROOT%{_prefix} \
bindir=$RPM_BUILD_ROOT%{_bindir} \
includedir=$RPM_BUILD_ROOT%{_includedir} \
@@ -120,6 +124,7 @@ cd ..
infodir=$RPM_BUILD_ROOT%{_infodir} \
mandir=$RPM_BUILD_ROOT%{_mandir} \
install-info
%endif
# host files
rm -rf $RPM_BUILD_ROOT%{_includedir}/*.h