!266 [sync] PR-265: [SPEC] Enable isl and add --with-isl

From: @openeuler-sync-bot 
Reviewed-by: @eastb233 
Signed-off-by: @eastb233
This commit is contained in:
openeuler-ci-bot 2023-04-14 03:18:23 +00:00 committed by Gitee
commit 4b0cc3f915
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -46,7 +46,7 @@
%else %else
%global build_libitm 0 %global build_libitm 0
%endif %endif
%global build_isl 0 %global build_isl 1
%global build_libstdcxx_docs 0 %global build_libstdcxx_docs 0
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips} %ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %{mips}
%global attr_ifunc 1 %global attr_ifunc 1
@ -61,12 +61,12 @@
Summary: Various compilers (C, C++, Objective-C, ...) Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc Name: gcc
Version: %{gcc_version} Version: %{gcc_version}
Release: 26 Release: 27
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
URL: https://gcc.gnu.org URL: https://gcc.gnu.org
Source0: https://ftp.gnu.org/gnu/gcc/gcc-10.3.0/gcc-10.3.0.tar.xz Source0: https://ftp.gnu.org/gnu/gcc/gcc-10.3.0/gcc-10.3.0.tar.xz
%global isl_version 0.16.1 %global isl_version 0.15
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: binutils >= 2.31 BuildRequires: binutils >= 2.31
@ -89,13 +89,8 @@ BuildRequires: gcc-gnat >= 3.1, libgnat >= 3.1
BuildRequires: libunwind >= 0.98 BuildRequires: libunwind >= 0.98
%endif %endif
%if %{build_isl} %if %{build_isl}
BuildRequires: isl = %{isl_version} BuildRequires: isl >= %{isl_version}, isl-devel >= %{isl_version}
BuildRequires: isl-devel = %{isl_version} Requires: isl >= %{isl_version}, isl-devel >= %{isl_version}
%if 0%{?__isa_bits} == 64
Requires: libisl.so.15()(64bit)
%else
Requires: libisl.so.15
%endif
%endif %endif
%if %{build_libstdcxx_docs} %if %{build_libstdcxx_docs}
BuildRequires: doxygen >= 1.7.1 BuildRequires: doxygen >= 1.7.1
@ -813,7 +808,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" \
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \ --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions \
--enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu \ --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu \
--enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto --enable-plugin \ --enable-languages=c,c++,fortran${enablelobjc}${enablelada}${enablelgo}${enableld},lto --enable-plugin \
--enable-initfini-array --disable-libgcj --without-isl --without-cloog \ --enable-initfini-array --disable-libgcj --with-isl --without-cloog \
--enable-gnu-indirect-function --build=%{gcc_target_platform} \ --enable-gnu-indirect-function --build=%{gcc_target_platform} \
--with-stage1-ldflags="$OPT_LDFLAGS" \ --with-stage1-ldflags="$OPT_LDFLAGS" \
--with-boot-ldflags="$OPT_LDFLAGS" --disable-bootstrap \ --with-boot-ldflags="$OPT_LDFLAGS" --disable-bootstrap \
@ -2772,6 +2767,12 @@ end
%doc rpm.doc/changelogs/libcc1/ChangeLog* %doc rpm.doc/changelogs/libcc1/ChangeLog*
%changelog %changelog
* Wed Apr 12 2023 huangxiaoquan <huangxiaoquan1@huawei.com> - 10.3.1-27
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:enable isl and add --with-isl
* Fri Mar 24 2023 huangxiaoquan <huangxiaoquan1@huawei.com> - 10.3.1-26 * Fri Mar 24 2023 huangxiaoquan <huangxiaoquan1@huawei.com> - 10.3.1-26
- Type:SPEC - Type:SPEC
- ID:NA - ID:NA