Accepting request 846444 from home:matwey:branches:devel:gcc

Build Freestanding C++ STL for avr.

 --with-newlib is required to make libstdc++ ./configure script correctly handle
avr-libc

OBS-URL: https://build.opensuse.org/request/show/846444
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc11?expand=0&rev=153
This commit is contained in:
Richard Biener 2020-11-13 07:32:15 +00:00 committed by Git OBS Bridge
parent 0553299634
commit 894d5a89a6
28 changed files with 112 additions and 28 deletions

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -501,8 +501,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -501,8 +501,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -501,8 +501,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -501,8 +501,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -500,8 +500,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -1276,8 +1276,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -659,8 +659,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"

View File

@ -1998,8 +1998,11 @@ amdgcn-amdhsa=%{_prefix}/amdgcn-amdhsa,\
%endif
%if "%{TARGET_ARCH}" == "avr"
--enable-lto \
--without-gxx-include-dir \
--with-native-system-header-dir=/include \
--with-newlib \
--disable-__cxa_atexit \
--enable-libstdcxx \
--disable-hosted-libstdcxx \
%endif
%endif
%if "%{TARGET_ARCH}" == "arm"