Support in-tree CLooG and ISL libraries for GCC

Update #3577.
This commit is contained in:
Sebastian Huber 2018-10-31 08:00:56 +01:00
parent 96c414c8ff
commit 509dfbdd2e

View File

@ -46,6 +46,16 @@ URL: http://gcc.gnu.org/
%define rtems_gcc_version %{rtems_version}
%endif
#
# Packages GCC requires
#
%if %{defined cloog_version}
%source set cloog https://gcc.gnu.org/pub/gcc/infrastructure/cloog-%{cloog_version}.tar.gz
%endif
%if %{defined isl_version}
%source set isl https://gcc.gnu.org/pub/gcc/infrastructure/isl-%{isl_version}.tar.bz2
%endif
#
# Prepare the source code.
#
@ -74,6 +84,28 @@ URL: http://gcc.gnu.org/
%{__rmfile} ${source_dir_gcc}/newlib
%{__ln_s} $PWD/${source_dir_newlib}/newlib ${source_dir_gcc}/newlib
%if %{defined cloog_version}
# CLooG
source_dir_cloog="cloog-%{cloog_version}"
%source setup cloog -q -D -n cloog-%{cloog_version}
%patch setup cloog -p1
cd ${build_top}
# Build MPFR one-tree style
%{__rmfile} ${source_dir_gcc}/cloog
%{__ln_s} $PWD/${source_dir_cloog} ${source_dir_gcc}/cloog
%endif
%if %{defined isl_version}
# ISL
source_dir_isl="isl-%{isl_version}"
%source setup isl -q -D -n isl-%{isl_version}
%patch setup isl -p1
cd ${build_top}
# Build MPFR one-tree style
%{__rmfile} ${source_dir_gcc}/isl
%{__ln_s} $PWD/${source_dir_isl} ${source_dir_gcc}/isl
%endif
# MPFR
source_dir_mpfr="mpfr-%{mpfr_version}"
%source setup mpfr -q -D -n mpfr-%{mpfr_version}