Richard Biener 2020-11-13 07:37:25 +00:00 committed by Git OBS Bridge
parent 95510d1b9b
commit f01a06d690
29 changed files with 724 additions and 200 deletions

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -231,7 +230,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -231,7 +230,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -231,7 +230,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -231,7 +230,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
Requires: nvptx-tools
ExclusiveArch:
ExclusiveArch: aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -230,7 +229,13 @@ BuildRequires: llvm
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
Requires: lld
Requires: llvm
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch:
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif
@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -26,7 +26,6 @@ ExclusiveArch: do-not-build
%define build_objc 0
%define build_objcp 0
%define build_go 0
%define build_hsa 0
%define build_nvptx 0
%define build_gcn 0
%define build_d 0
@ -133,7 +132,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
BuildRequires: nvptx-tools
Requires: nvptx-tools
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
ExclusiveArch: x86_64
ExclusiveArch: x86_64 aarch64
%define nvptx_newlib 1
%endif
%if "%{cross_arch}" == "amdgcn"
@ -143,7 +142,13 @@ BuildRequires: lld
Requires: llvm
Requires: lld
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
ExclusiveArch: x86_64
%else
ExclusiveArch: do-not-build
%endif
%define amdgcn_newlib 1
%endif
%endif

View File

@ -70,11 +70,21 @@
%define build_d 0
%endif
%ifarch x86_64
%ifarch x86_64 aarch64
%define build_nvptx 1
%define build_gcn 1
%else
%define build_nvptx 0
%endif
%ifarch x86_64
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
%define build_gcn 1
%else
%define build_gcn 0
%endif
%else
%define build_gcn 0
%endif
@ -1179,7 +1189,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -1199,7 +1209,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -1276,11 +1290,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -1291,6 +1302,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \
@ -1445,7 +1468,7 @@ export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi}
# Remove some useless .la files
for lib in libobjc libgfortran libquadmath libcaf_single \
libgomp libstdc++ libsupc++ libgo \
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \
libasan libatomic libitm libtsan liblsan libubsan libvtv \
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
libgdruntime libgphobos; do

View File

@ -88,11 +88,21 @@
%define build_d 0
%endif
%ifarch x86_64
%ifarch x86_64 aarch64
%define build_nvptx 1
%define build_gcn 1
%else
%define build_nvptx 0
%endif
%ifarch x86_64
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
%define build_gcn 1
%else
%define build_gcn 0
%endif
%else
%define build_gcn 0
%endif
@ -562,7 +572,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -582,7 +592,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -659,11 +673,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -674,6 +685,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \

View File

@ -70,11 +70,21 @@
%define build_d 0
%endif
%ifarch x86_64
%ifarch x86_64 aarch64
%define build_nvptx 1
%define build_gcn 1
%else
%define build_nvptx 0
%endif
%ifarch x86_64
# SLE12 does not fulfil build requirements for GCN, SLE15 SP1 does
# technically also SLE12 SP5 but do not bother there
%if %{suse_version} >= 1550 || 0%{?sle_version:%sle_version} >= 150100
%define build_gcn 1
%else
%define build_gcn 0
%endif
%else
%define build_gcn 0
%endif
@ -1901,7 +1911,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
--libdir=%{_libdir} \
--libexecdir=%{_libdir} \
--enable-languages=$languages \
%if %{build_nvptx}
%if %{build_nvptx} || %{build_gcn}
--enable-offload-targets=\
%if %{build_nvptx}
nvptx-none=%{_prefix}/nvptx-none,\
@ -1921,7 +1931,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%if 0%{!?build_libvtv:1}
--disable-libvtv \
%endif
%if 0%{suse_version} >= 1500
--enable-cet=auto \
%else
--disable-cet \
%endif
--disable-libcc1 \
%if %{enable_plugins}
--enable-plugin \
@ -1998,11 +2012,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"
@ -2013,6 +2024,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
--with-fpu=vfp \
--disable-sjlj-exceptions \
%endif
%if "%{TARGET_ARCH}" == "arm-none"
--enable-multilib \
--with-multilib-list=aprofile,rmprofile \
--disable-decimal-float \
--disable-libffi \
--disable-libgomp \
--disable-libmudflap \
--disable-libquadmath \
--disable-shared \
--disable-threads \
--disable-tls \
%endif
%if "%{TARGET_ARCH}" == "armv5tel"
--with-arch=armv5te \
--with-float=soft \
@ -2164,7 +2187,7 @@ export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi}
# Remove some useless .la files
for lib in libobjc libgfortran libquadmath libcaf_single \
libgomp libstdc++ libsupc++ libgo \
libgomp libgomp-plugin-hsa libstdc++ libsupc++ libgo \
libasan libatomic libitm libtsan liblsan libubsan libvtv \
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
libgdruntime libgphobos; do