forked from pool/gcc11
This commit is contained in:
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -231,7 +230,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -231,7 +230,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -231,7 +230,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -221,7 +220,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -231,7 +230,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -404,7 +409,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -424,7 +429,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -501,11 +510,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -516,6 +522,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -47,7 +47,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -220,7 +219,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
ExclusiveArch:
|
ExclusiveArch: aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -230,7 +229,13 @@ BuildRequires: llvm
|
|||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: llvm
|
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:
|
ExclusiveArch:
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
@@ -403,7 +408,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -423,7 +428,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -500,11 +509,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -515,6 +521,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ ExclusiveArch: do-not-build
|
|||||||
%define build_objc 0
|
%define build_objc 0
|
||||||
%define build_objcp 0
|
%define build_objcp 0
|
||||||
%define build_go 0
|
%define build_go 0
|
||||||
%define build_hsa 0
|
|
||||||
%define build_nvptx 0
|
%define build_nvptx 0
|
||||||
%define build_gcn 0
|
%define build_gcn 0
|
||||||
%define build_d 0
|
%define build_d 0
|
||||||
@@ -133,7 +132,7 @@ BuildRequires: cross-%cross_arch-glibc-devel
|
|||||||
BuildRequires: nvptx-tools
|
BuildRequires: nvptx-tools
|
||||||
Requires: nvptx-tools
|
Requires: nvptx-tools
|
||||||
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
Requires: cross-nvptx-newlib-devel >= %{version}-%{release}
|
||||||
ExclusiveArch: x86_64
|
ExclusiveArch: x86_64 aarch64
|
||||||
%define nvptx_newlib 1
|
%define nvptx_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%if "%{cross_arch}" == "amdgcn"
|
%if "%{cross_arch}" == "amdgcn"
|
||||||
@@ -143,7 +142,13 @@ BuildRequires: lld
|
|||||||
Requires: llvm
|
Requires: llvm
|
||||||
Requires: lld
|
Requires: lld
|
||||||
Requires: cross-amdgcn-newlib-devel >= %{version}-%{release}
|
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
|
ExclusiveArch: x86_64
|
||||||
|
%else
|
||||||
|
ExclusiveArch: do-not-build
|
||||||
|
%endif
|
||||||
%define amdgcn_newlib 1
|
%define amdgcn_newlib 1
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|||||||
39
gcc.spec.in
39
gcc.spec.in
@@ -70,11 +70,21 @@
|
|||||||
%define build_d 0
|
%define build_d 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64 aarch64
|
||||||
%define build_nvptx 1
|
%define build_nvptx 1
|
||||||
%define build_gcn 1
|
|
||||||
%else
|
%else
|
||||||
%define build_nvptx 0
|
%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
|
%define build_gcn 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -1179,7 +1189,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -1199,7 +1209,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -1276,11 +1290,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -1291,6 +1302,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
@@ -1445,7 +1468,7 @@ export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi}
|
|||||||
|
|
||||||
# Remove some useless .la files
|
# Remove some useless .la files
|
||||||
for lib in libobjc libgfortran libquadmath libcaf_single \
|
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 \
|
libasan libatomic libitm libtsan liblsan libubsan libvtv \
|
||||||
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
|
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
|
||||||
libgdruntime libgphobos; do
|
libgdruntime libgphobos; do
|
||||||
|
|||||||
@@ -88,11 +88,21 @@
|
|||||||
%define build_d 0
|
%define build_d 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64 aarch64
|
||||||
%define build_nvptx 1
|
%define build_nvptx 1
|
||||||
%define build_gcn 1
|
|
||||||
%else
|
%else
|
||||||
%define build_nvptx 0
|
%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
|
%define build_gcn 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -562,7 +572,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -582,7 +592,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -659,11 +673,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -674,6 +685,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
|
|||||||
39
gcc11.spec
39
gcc11.spec
@@ -70,11 +70,21 @@
|
|||||||
%define build_d 0
|
%define build_d 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch x86_64
|
%ifarch x86_64 aarch64
|
||||||
%define build_nvptx 1
|
%define build_nvptx 1
|
||||||
%define build_gcn 1
|
|
||||||
%else
|
%else
|
||||||
%define build_nvptx 0
|
%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
|
%define build_gcn 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -1901,7 +1911,7 @@ TCFLAGS="$RPM_OPT_FLAGS" \
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--libexecdir=%{_libdir} \
|
--libexecdir=%{_libdir} \
|
||||||
--enable-languages=$languages \
|
--enable-languages=$languages \
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx} || %{build_gcn}
|
||||||
--enable-offload-targets=\
|
--enable-offload-targets=\
|
||||||
%if %{build_nvptx}
|
%if %{build_nvptx}
|
||||||
nvptx-none=%{_prefix}/nvptx-none,\
|
nvptx-none=%{_prefix}/nvptx-none,\
|
||||||
@@ -1921,7 +1931,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%if 0%{!?build_libvtv:1}
|
%if 0%{!?build_libvtv:1}
|
||||||
--disable-libvtv \
|
--disable-libvtv \
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{suse_version} >= 1500
|
||||||
|
--enable-cet=auto \
|
||||||
|
%else
|
||||||
--disable-cet \
|
--disable-cet \
|
||||||
|
%endif
|
||||||
--disable-libcc1 \
|
--disable-libcc1 \
|
||||||
%if %{enable_plugins}
|
%if %{enable_plugins}
|
||||||
--enable-plugin \
|
--enable-plugin \
|
||||||
@@ -1998,11 +2012,8 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "avr"
|
%if "%{TARGET_ARCH}" == "avr"
|
||||||
--enable-lto \
|
--enable-lto \
|
||||||
|
--without-gxx-include-dir \
|
||||||
--with-native-system-header-dir=/include \
|
--with-native-system-header-dir=/include \
|
||||||
--with-newlib \
|
|
||||||
--disable-__cxa_atexit \
|
|
||||||
--enable-libstdcxx \
|
|
||||||
--disable-hosted-libstdcxx \
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if "%{TARGET_ARCH}" == "arm"
|
%if "%{TARGET_ARCH}" == "arm"
|
||||||
@@ -2013,6 +2024,18 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
|
|||||||
--with-fpu=vfp \
|
--with-fpu=vfp \
|
||||||
--disable-sjlj-exceptions \
|
--disable-sjlj-exceptions \
|
||||||
%endif
|
%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"
|
%if "%{TARGET_ARCH}" == "armv5tel"
|
||||||
--with-arch=armv5te \
|
--with-arch=armv5te \
|
||||||
--with-float=soft \
|
--with-float=soft \
|
||||||
@@ -2164,7 +2187,7 @@ export LIBRARY_PATH=%{buildroot}/%{libsubdir}:%{buildroot}/%{mainlibdirbi}
|
|||||||
|
|
||||||
# Remove some useless .la files
|
# Remove some useless .la files
|
||||||
for lib in libobjc libgfortran libquadmath libcaf_single \
|
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 \
|
libasan libatomic libitm libtsan liblsan libubsan libvtv \
|
||||||
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
|
libstdc++fs libgomp-plugin-nvptx libgomp-plugin-gcn \
|
||||||
libgdruntime libgphobos; do
|
libgdruntime libgphobos; do
|
||||||
|
|||||||
Reference in New Issue
Block a user