Radix cross Linux Toolchains

Toolchains for all supported by Radix cross Linux devices

80 Commits   2 Branches   13 Tags
     5         kx 
     5         kx 
     5         kx COMPONENT_TARGETS  = $(TOOLCHAIN_ARM32_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_M1000_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_AT91SAM7S_NEWLIB)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_RISCV64_NEWLIB)
     5         kx 
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A1X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A2X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_H3_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_H5_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_IMX6_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_IMX6ULL_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_JZ47XX_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_P5600_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_M1000_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_OMAP543X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_AM335X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_RK328X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A311X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
    10         kx COMPONENT_TARGETS += $(TOOLCHAIN_RK358X_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
     5         kx 
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER9_GLIBC)
     5         kx 
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER8LE_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_POWER9LE_GLIBC)
     5         kx 
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_RISCV64_GLIBC)
     5         kx 
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_I586_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_I686_GLIBC)
     5         kx COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
     5         kx 
     5         kx 
     5         kx FLAVOURS = static second full
     5         kx 
     5         kx 
     5         kx include ../../../build-system/config.mk
     5         kx 
     5         kx 
     5         kx SOURCE_REQUIRES  = sources/GNU/gcc/gcc-12.2.0
     5         kx SOURCE_REQUIRES += sources/GNU/gmp
     5         kx SOURCE_REQUIRES += sources/GNU/mpfr
     5         kx SOURCE_REQUIRES += sources/GNU/mpc
     5         kx SOURCE_REQUIRES += sources/inria/isl
     5         kx 
     5         kx 
     5         kx ifneq ($(findstring newlib, $(TOOLCHAIN)),)
     5         kx ifeq ($(FLAVOUR),static)
     9         kx REQUIRES  = core/binutils/2.40
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx REQUIRES  = core/newlib/4.2.0.20211231^full
     5         kx endif
     5         kx endif
     5         kx 
     5         kx ifneq ($(findstring -glibc, $(TOOLCHAIN)),)
     5         kx ifeq ($(FLAVOUR),static)
     9         kx REQUIRES  = core/binutils/2.40
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
    11         kx REQUIRES  = core/glibc/2.37^headers
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
    11         kx REQUIRES  = core/glibc/2.37^full
     5         kx endif
     5         kx endif
     5         kx 
     5         kx # ======= __END_OF_REQUIRES__ =======
     5         kx 
     5         kx tar_xz_archive        = $(SRC_PACKAGE_PATH)/GNU/gcc/gcc-12.2.0/gcc-12.2.0.tar.xz
     5         kx tar_xz_archive_gmp    = $(SRC_PACKAGE_PATH)/GNU/gmp/gmp-6.2.1.tar.xz
     5         kx tar_xz_archive_mpfr   = $(SRC_PACKAGE_PATH)/GNU/mpfr/mpfr-4.1.0.tar.xz
     5         kx tar_gz_archive_mpc    = $(SRC_PACKAGE_PATH)/GNU/mpc/mpc-1.2.1.tar.gz
     5         kx tar_xz_archive_isl    = $(SRC_PACKAGE_PATH)/inria/isl/isl-0.25.tar.xz
     5         kx SRC_ARCHIVE           = $(tar_xz_archive)
     5         kx SRC_DIR               = $(TARGET_BUILD_DIR)/gcc-12.2.0
     5         kx src_dir_name          = gcc-12.2.0
     5         kx src_done              = $(TARGET_BUILD_DIR)/.source-done
     5         kx gmp_src_done          = $(TARGET_BUILD_DIR)/.gmp-source-done
     5         kx mpfr_src_done         = $(TARGET_BUILD_DIR)/.mpfr-source-done
     5         kx mpc_src_done          = $(TARGET_BUILD_DIR)/.mpc-source-done
     5         kx isl_src_done          = $(TARGET_BUILD_DIR)/.isl-source-done
     5         kx 
     5         kx ifneq ($(TOOLCHAIN),)
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AT91SAM7S_NEWLIB)),)
     5         kx PATCHES = PATCHES.at91sam7s
     5         kx else
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A9XX_NEWLIB)),)
     5         kx PATCHES = PATCHES.a9xx
     5         kx else
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB)),)
     5         kx PATCHES = PATCHES.a33xx
     5         kx else
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) \
     5         kx                              $(TOOLCHAIN_POWER9_GLIBC)),)
     5         kx PATCHES = PATCHES.powerpc
     5         kx else
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC) \
     5         kx                              $(TOOLCHAIN_POWER9LE_GLIBC)),)
     5         kx PATCHES = PATCHES.powerpcle
     5         kx else
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)     \
     5         kx                              $(TOOLCHAIN_S9XX_GLIBC)   \
     5         kx                              $(TOOLCHAIN_A311X_GLIBC)  \
     5         kx                              $(TOOLCHAIN_RK33XX_GLIBC) \
     5         kx                              $(TOOLCHAIN_RK339X_GLIBC) \
    10         kx                              $(TOOLCHAIN_RK358X_GLIBC) \
     5         kx                              $(TOOLCHAIN_M1000_GLIBC)),)
     5         kx PATCHES = PATCHES.aarch64
     5         kx else
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
     5         kx PATCHES = PATCHES.x86_64
     5         kx else
     5         kx PATCHES = PATCHES
     5         kx endif
     5         kx endif
     5         kx endif
     5         kx endif
     5         kx endif
     5         kx endif
     5         kx endif
     5         kx endif
     5         kx 
     5         kx build_dir             = $(TARGET_BUILD_DIR)/build
     5         kx 
     5         kx sysroot_dir           = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
     5         kx 
     5         kx static_build_target   = $(TARGET_BUILD_DIR)/.static-built
     5         kx static_install_target = $(TARGET_BUILD_DIR)/.static-installed
     5         kx second_build_target   = $(TARGET_BUILD_DIR)/.second-built
     5         kx second_install_target = $(TARGET_BUILD_DIR)/.second-installed
     5         kx full_build_target     = $(TARGET_BUILD_DIR)/.full-built
     5         kx full_install_target   = $(TARGET_BUILD_DIR)/.full-installed
     5         kx 
     5         kx #
     5         kx # Cross GNAT requires native GNAT on the build machine with same version.
     5         kx # To be independed from distribution we are working the build GNAT tools
     5         kx # created and installed with prefix $(GNATTOOLS_DEST_DIR)
     5         kx #
     5         kx # see: build-system/3pp/gnattools/12.2.0 for more information.
     5         kx #
     5         kx GNATTOOLS_DEST_DIR = $(BUILDSYSTEM)/gnattools/12.2.0/usr
     5         kx 
     5         kx environment  = PATH=$(TOOLCHAIN_PATH)/bin:$(GNATTOOLS_DEST_DIR)/bin:$(PATH)
     5         kx environment += GNATBIND=$(GNATTOOLS_DEST_DIR)/bin/gnatbind
     5         kx environment += GNATMAKE=$(GNATTOOLS_DEST_DIR)/bin/gnatmake
     5         kx 
     5         kx 
     5         kx LIBSUFFIX    =
     5         kx 
     5         kx 
     5         kx ifeq ($(FLAVOUR),static)
     5         kx BUILD_TARGETS  = $(static_build_target)
     5         kx BUILD_TARGETS += $(static_install_target)
     5         kx endif
     5         kx 
     5         kx ifeq ($(FLAVOUR),second)
     5         kx BUILD_TARGETS  = $(second_build_target)
     5         kx BUILD_TARGETS += $(second_install_target)
     5         kx endif
     5         kx 
     5         kx ifeq ($(FLAVOUR),full)
     5         kx BUILD_TARGETS  = $(full_build_target)
     5         kx BUILD_TARGETS += $(full_install_target)
     5         kx endif
     5         kx 
     5         kx 
     5         kx include ../../../build-system/core.mk
     5         kx 
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_ARM32_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --enable-interwork
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-abi=aapcs
     5         kx extra_configure_switches += --with-dwarf2
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --disable-tls
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx extra_configure_switches += --with-multilib-list=aprofile,rmprofile
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --enable-interwork
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --disable-tls
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx extra_configure_switches += --with-extra-multilibs=armv6-m
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A9XX_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --enable-interwork
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --disable-tls
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx extra_configure_switches += --with-extra-multilibs=armv7-m
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-multilib-list=lp64,ilp32
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a53
     5         kx extra_configure_switches += --disable-__cxa_atexit
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-multilib-list=lp64,ilp32
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a53
     5         kx extra_configure_switches += --disable-__cxa_atexit
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-multilib-list=lp64,ilp32
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a53
     5         kx extra_configure_switches += --disable-__cxa_atexit
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_M1000_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-multilib-list=lp64,ilp32
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a57
     5         kx extra_configure_switches += --disable-__cxa_atexit
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_AT91SAM7S_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --enable-interwork
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --enable-fpu=no
     5         kx extra_configure_switches += --enable-nofmult=no
     5         kx extra_configure_switches += --enable-26bit=no
     5         kx extra_configure_switches += --enable-underscore=no
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --with-float=soft
     5         kx extra_configure_switches += --with-dwarf2
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --disable-tls
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx extra_configure_switches += --with-extra-multilibs=armv4t
     5         kx endif
     5         kx 
     5         kx ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RISCV64_NEWLIB))
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-abi=lp64d
     5         kx extra_configure_switches += --with-arch=rv64imafdc
     5         kx extra_configure_switches += --with-dwarf2
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-tm-clone-registry
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-tls
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --without-headers
     5         kx extra_configure_switches += --enable-languages=c
     5         kx else
     5         kx extra_configure_switches += --enable-plugins
     5         kx extra_configure_switches += --with-headers=yes
     5         kx extra_configure_switches += --enable-languages=c,c++
     5         kx endif
     5         kx extra_configure_switches += --with-newlib
     5         kx extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
     5         kx extra_configure_switches += 'CFLAGS_FOR_TARGET=-O2 -mcmodel=medany'
     5         kx extra_configure_switches += 'CXXFLAGS_FOR_TARGET=-O2 -mcmodel=medany'
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7-a
     5         kx extra_configure_switches += --with-tune=cortex-a8
     5         kx extra_configure_switches += --with-fpu=neon
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7ve
     5         kx extra_configure_switches += --with-tune=cortex-a7
     5         kx extra_configure_switches += --with-fpu=neon-vfpv4
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H3_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7ve
     5         kx extra_configure_switches += --with-tune=cortex-a7
     5         kx extra_configure_switches += --with-fpu=neon-vfpv4
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --with-mode=thumb
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # --without-headers replacement for --with-newlib, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --without-headers
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_H5_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a53
     5         kx extra_configure_switches += --with-abi=lp64
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx # add
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S8XX_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7-a
     5         kx extra_configure_switches += --with-tune=cortex-a5
     5         kx extra_configure_switches += --with-fpu=neon
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_S9XX_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a53
     5         kx extra_configure_switches += --with-abi=lp64
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx # add
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A9XX_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-fpu=neon-fp-armv8
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A311X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a73.cortex-a53
     5         kx extra_configure_switches += --with-abi=lp64
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx # add
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK33XX_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a53
     5         kx extra_configure_switches += --with-abi=lp64
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx # add
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a72.cortex-a53
     5         kx extra_configure_switches += --with-abi=lp64
     5         kx extra_configure_switches += --enable-fix-cortex-a53-835769
     5         kx extra_configure_switches += --enable-fix-cortex-a53-843419
     5         kx # add
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
    10         kx extra_configure_switches += --enable-lto
    10         kx extra_configure_switches += --enable-nls
    10         kx extra_configure_switches += --with-included-gettext
    10         kx endif
    10         kx endif
    10         kx 
    10         kx 
    10         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK358X_GLIBC)),)
    10         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
    10         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
    10         kx extra_configure_switches += --disable-multiarch
    10         kx extra_configure_switches += --disable-multilib
    18         kx extra_configure_switches += --with-arch=armv8.2-a
    10         kx extra_configure_switches += --with-cpu=cortex-a75.cortex-a55
    10         kx extra_configure_switches += --with-abi=lp64
    10         kx # add
    10         kx extra_configure_switches += --enable-gold
    10         kx extra_configure_switches += --enable-c99
    10         kx extra_configure_switches += --enable-long-long
    10         kx extra_configure_switches += --disable-isl-version-check
    10         kx ifeq ($(FLAVOUR),static)
    10         kx extra_configure_switches += --disable-libatomic
    10         kx extra_configure_switches += --disable-libgomp
    10         kx extra_configure_switches += --disable-libitm
    10         kx extra_configure_switches += --disable-libmudflap
    10         kx extra_configure_switches += --disable-libquadmath
    10         kx extra_configure_switches += --disable-libsanitizer
    10         kx extra_configure_switches += --disable-libssp
    10         kx extra_configure_switches += --disable-libstdc++-v3
    10         kx extra_configure_switches += --disable-threads
    10         kx extra_configure_switches += --enable-languages=c
    10         kx extra_configure_switches += --disable-shared
    10         kx extra_configure_switches += --disable-nls
    10         kx # without-headers replacement, to make libgcc independed from glibc:
    10         kx extra_configure_switches += --with-newlib
    10         kx endif
    10         kx ifeq ($(FLAVOUR),second)
    10         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
    10         kx extra_configure_switches += --disable-libatomic
    10         kx extra_configure_switches += --disable-libgomp
    10         kx extra_configure_switches += --disable-libitm
    10         kx extra_configure_switches += --disable-libmudflap
    10         kx extra_configure_switches += --disable-libquadmath
    10         kx extra_configure_switches += --disable-libsanitizer
    10         kx extra_configure_switches += --disable-libssp
    10         kx extra_configure_switches += --disable-libstdc++-v3
    10         kx extra_configure_switches += --enable-languages=c
    10         kx extra_configure_switches += --disable-nls
    10         kx endif
    10         kx ifeq ($(FLAVOUR),full)
    10         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
    10         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
    10         kx extra_configure_switches += --enable-libstdcxx-dual-abi
    10         kx extra_configure_switches += --with-default-libstdcxx-abi=new
    10         kx extra_configure_switches += --disable-libstdcxx-pch
    10         kx extra_configure_switches += --disable-libunwind-exceptions
    10         kx extra_configure_switches += --with-linker-hash-style=gnu
    10         kx extra_configure_switches += --enable-gnu-unique-object
    10         kx extra_configure_switches += --enable-clocale=gnu
    10         kx extra_configure_switches += --enable-__cxa_atexit
    10         kx extra_configure_switches += --enable-threads=posix
    10         kx extra_configure_switches += --enable-default-ssp
    10         kx extra_configure_switches += --disable-libssp
    10         kx extra_configure_switches += --enable-shared
    10         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A33XX_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-fpu=neon-fp-armv8
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7ve
     5         kx extra_configure_switches += --with-tune=cortex-a17
     5         kx extra_configure_switches += --with-fpu=neon-vfpv4
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7-a
     5         kx extra_configure_switches += --with-tune=cortex-a9
     5         kx extra_configure_switches += --with-fpu=vfpv3
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --with-mode=thumb
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # --without-headers replacement for --with-newlib, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --without-headers
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6ULL_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7-a
     5         kx extra_configure_switches += --with-tune=cortex-a7
     5         kx extra_configure_switches += --with-fpu=neon-vfpv4
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # --without-headers replacement for --with-newlib, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --without-headers
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7ve
     5         kx extra_configure_switches += --with-tune=cortex-a15
     5         kx extra_configure_switches += --with-fpu=neon-vfpv4
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --with-mode=thumb
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # --without-headers replacement for --with-newlib, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --without-headers
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_AM335X_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=armv7-a
     5         kx extra_configure_switches += --with-tune=cortex-a8
     5         kx extra_configure_switches += --with-fpu=neon
     5         kx extra_configure_switches += --with-abi=aapcs-linux
     5         kx # add
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # --without-headers replacement for --with-newlib, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --without-headers
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch-32=mips32r2
     5         kx extra_configure_switches += --with-arch-64=mips64r2
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --with-mips-plt
     5         kx extra_configure_switches += --enable-target-optspace
     5         kx extra_configure_switches += --enable-symvers=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=mips32r5
     5         kx extra_configure_switches += --with-tune=p5600
     5         kx extra_configure_switches += --with-float=hard
     5         kx extra_configure_switches += --with-mips-plt
     5         kx extra_configure_switches += --enable-target-optspace
     5         kx extra_configure_switches += --enable-symvers=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --with-gnu-as
     5         kx extra_configure_switches += --with-gnu-ld
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_M1000_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multiarch
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-arch=armv8-a
     5         kx extra_configure_switches += --with-cpu=cortex-a57
     5         kx extra_configure_switches += --with-abi=lp64
     5         kx # add
     5         kx extra_configure_switches += --enable-gold
     5         kx extra_configure_switches += --enable-c99
     5         kx extra_configure_switches += --enable-long-long
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx # without-headers replacement, to make libgcc independed from glibc:
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-multilib-list=m64,m32
     5         kx extra_configure_switches += --with-cpu-32=power8
     5         kx extra_configure_switches += --with-tune-32=power8
     5         kx extra_configure_switches += --with-cpu-64=power8
     5         kx extra_configure_switches += --with-tune-64=power8
     5         kx extra_configure_switches += --with-long-double-128
     5         kx # gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
     5         kx extra_configure_switches += --enable-gnu-indirect-function
     5         kx extra_configure_switches += --enable-secureplt
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-multilib-list=m64,m32
     5         kx extra_configure_switches += --with-cpu-32=power9
     5         kx extra_configure_switches += --with-tune-32=power9
     5         kx extra_configure_switches += --with-cpu-64=power9
     5         kx extra_configure_switches += --with-tune-64=power9
     5         kx extra_configure_switches += --with-long-double-128
     5         kx # gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
     5         kx extra_configure_switches += --enable-gnu-indirect-function
     5         kx extra_configure_switches += --enable-secureplt
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8LE_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-cpu=power8
     5         kx extra_configure_switches += --with-tune=power8
     5         kx extra_configure_switches += --with-long-double-128
     5         kx # gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
     5         kx extra_configure_switches += --enable-gnu-indirect-function
     5         kx extra_configure_switches += --enable-secureplt
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER9LE_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-cpu=power9
     5         kx extra_configure_switches += --with-tune=power9
     5         kx extra_configure_switches += --with-long-double-128
     5         kx # gnu-indirect-function available for i[3456]86*|x86_64*|ppc*|ppc64*|s390*|arm*|aarch64*|mips* targets:
     5         kx extra_configure_switches += --enable-gnu-indirect-function
     5         kx extra_configure_switches += --enable-secureplt
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RISCV64_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --disable-multilib
     5         kx extra_configure_switches += --with-abi=lp64d
     5         kx extra_configure_switches += --with-arch=rv64imafdc
     5         kx extra_configure_switches += --enable-tls
     5         kx extra_configure_switches += --disable-tm-clone-registry
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx extra_configure_switches += 'CFLAGS_FOR_TARGET=-O2 -mcmodel=medany'
     5         kx extra_configure_switches += 'CXXFLAGS_FOR_TARGET=-O2 -mcmodel=medany'
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I586_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=i586
     5         kx extra_configure_switches += --with-tune=i586
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I686_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --with-arch=i686
     5         kx extra_configure_switches += --with-tune=i686
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
     5         kx extra_configure_switches  = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
    66         kx extra_configure_switches += '--with-bugurl=https://radix-linux.su'
     5         kx extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
     5         kx extra_configure_switches += --enable-multilib
     5         kx extra_configure_switches += --with-multilib-list=m64,m32
     5         kx extra_configure_switches += --disable-isl-version-check
     5         kx ifeq ($(FLAVOUR),static)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --disable-threads
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --disable-shared
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx extra_configure_switches += --with-newlib
     5         kx endif
     5         kx ifeq ($(FLAVOUR),second)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --disable-libatomic
     5         kx extra_configure_switches += --disable-libgomp
     5         kx extra_configure_switches += --disable-libitm
     5         kx extra_configure_switches += --disable-libmudflap
     5         kx extra_configure_switches += --disable-libquadmath
     5         kx extra_configure_switches += --disable-libsanitizer
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --disable-libstdc++-v3
     5         kx extra_configure_switches += --enable-languages=c
     5         kx extra_configure_switches += --enable-decimal-float=no
     5         kx extra_configure_switches += --disable-nls
     5         kx endif
     5         kx ifeq ($(FLAVOUR),full)
     5         kx extra_configure_switches += --with-sysroot=$(sysroot_dir)
     5         kx extra_configure_switches += --enable-languages=c,c++,d,objc,obj-c++,fortran,go,lto,ada
     5         kx extra_configure_switches += --enable-libstdcxx-dual-abi
     5         kx extra_configure_switches += --with-default-libstdcxx-abi=new
     5         kx extra_configure_switches += --disable-libstdcxx-pch
     5         kx extra_configure_switches += --disable-libunwind-exceptions
     5         kx extra_configure_switches += --with-linker-hash-style=gnu
     5         kx extra_configure_switches += --enable-gnu-unique-object
     5         kx extra_configure_switches += --enable-clocale=gnu
     5         kx extra_configure_switches += --enable-__cxa_atexit
     5         kx extra_configure_switches += --enable-threads=posix
     5         kx extra_configure_switches += --enable-default-ssp
     5         kx extra_configure_switches += --disable-libssp
     5         kx extra_configure_switches += --enable-shared
     5         kx extra_configure_switches += --enable-plugin
     5         kx extra_configure_switches += --enable-lto
     5         kx extra_configure_switches += --enable-nls
     5         kx extra_configure_switches += --with-included-gettext
     5         kx endif
     5         kx endif
     5         kx 
     5         kx 
     5         kx 
     5         kx $(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
     5         kx 	$(UNPACK_SRC_ARCHIVE)
     5         kx 	$(APPLY_PATCHES)
     5         kx 	@touch $@
     5         kx 
     5         kx $(gmp_src_done): $(src_done)
     5         kx 	@echo "Expanding $(tar_xz_archive_gmp)"
     5         kx 	@tar xJf $(tar_xz_archive_gmp) -C $(TARGET_BUILD_DIR)
     5         kx 	@cd $(SRC_DIR); ln -sf ../gmp-6.2.1 gmp
     5         kx 	@touch $@
     5         kx 
     5         kx $(mpfr_src_done): $(src_done)
     5         kx 	@echo "Expanding $(tar_xz_archive_mpfr)"
     5         kx 	@tar xJf $(tar_xz_archive_mpfr) -C $(TARGET_BUILD_DIR)
     5         kx 	@cd $(SRC_DIR); ln -sf ../mpfr-4.1.0 mpfr
     5         kx 	@touch $@
     5         kx 
     5         kx $(mpc_src_done): $(src_done)
     5         kx 	@echo "Expanding $(tar_gz_archive_mpc)"
     5         kx 	@tar xzf $(tar_gz_archive_mpc) -C $(TARGET_BUILD_DIR)
     5         kx 	@cd $(SRC_DIR); ln -sf ../mpc-1.2.1 mpc
     5         kx 	@touch $@
     5         kx 
     5         kx $(isl_src_done): $(src_done)
     5         kx 	@echo "Expanding $(tar_xz_archive_isl)"
     5         kx 	@tar xJf $(tar_xz_archive_isl) -C $(TARGET_BUILD_DIR)
     5         kx 	@cd $(SRC_DIR); ln -sf ../isl-0.25 isl
     5         kx 	@touch $@
     5         kx 
     5         kx $(static_build_target): $(gmp_src_done) $(mpfr_src_done) $(mpc_src_done) $(isl_src_done)
     5         kx 	@mkdir -p $(build_dir)
     5         kx 	@cd $(build_dir) && $(environment) ../$(src_dir_name)/configure \
     5         kx 	  --prefix=$(TOOLCHAIN_PATH)       \
     5         kx 	  --build=$(HOST)                  \
     5         kx 	  --host=$(HOST)                   \
     5         kx 	  --target=$(TARGET)               \
     5         kx 	  --with-as=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as \
     5         kx 	  --with-ld=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld \
     5         kx 	  --datadir=$(TOOLCHAIN_PATH)/share       \
     5         kx 	  --infodir=$(TOOLCHAIN_PATH)/share/info  \
     5         kx 	  --mandir=$(TOOLCHAIN_PATH)/share/man    \
     5         kx 	  $(extra_configure_switches)
     5         kx 	@$(environment) $(MAKE) -C $(build_dir) all
     5         kx 	@touch $@
     5         kx 
     5         kx $(static_install_target): $(static_build_target)
     5         kx 	@$(MAKE) $(environment) -j1 -C $(build_dir) install
     5         kx 	@rm -f $(TOOLCHAIN_PATH)/share/info/dir
     5         kx 	@echo "  $(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/README
     5         kx 	@touch $@
     5         kx 
     5         kx $(second_build_target): $(gmp_src_done) $(mpfr_src_done) $(mpc_src_done) $(isl_src_done)
     5         kx 	@mkdir -p $(build_dir)
     5         kx 	@cd $(build_dir) && $(environment) ../$(src_dir_name)/configure \
     5         kx 	  --prefix=$(TOOLCHAIN_PATH)       \
     5         kx 	  --build=$(HOST)                  \
     5         kx 	  --host=$(HOST)                   \
     5         kx 	  --target=$(TARGET)               \
     5         kx 	  --with-as=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as \
     5         kx 	  --with-ld=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld \
     5         kx 	  --datadir=$(TOOLCHAIN_PATH)/share       \
     5         kx 	  --infodir=$(TOOLCHAIN_PATH)/share/info  \
     5         kx 	  --mandir=$(TOOLCHAIN_PATH)/share/man    \
     5         kx 	  $(extra_configure_switches)
     5         kx 	@$(environment) $(MAKE) -C $(build_dir) all
     5         kx 	@touch $@
     5         kx 
     5         kx $(second_install_target): $(second_build_target)
     5         kx 	@$(MAKE) $(environment) -j1 -C $(build_dir) install
     5         kx 	@rm -f $(TOOLCHAIN_PATH)/share/info/dir
     5         kx 	@cp -d $(TOOLCHAIN_PATH)/$(TARGET)/lib/libgcc_s.so $(sysroot_dir)/usr/lib
     5         kx 	@cp    $(TOOLCHAIN_PATH)/$(TARGET)/lib/libgcc_s.so.1 $(sysroot_dir)/usr/lib
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC) \
     5         kx                              $(TOOLCHAIN_X86_64_GLIBC)),)
     5         kx 	@cp -d $(TOOLCHAIN_PATH)/$(TARGET)/lib32/libgcc_s.so $(sysroot_dir)/usr/lib32
     5         kx 	@cp    $(TOOLCHAIN_PATH)/$(TARGET)/lib32/libgcc_s.so.1 $(sysroot_dir)/usr/lib32
     5         kx endif
     5         kx 	@echo "  $(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/README
     5         kx 	@touch $@
     5         kx 
     5         kx $(full_build_target): $(gmp_src_done) $(mpfr_src_done) $(mpc_src_done) $(isl_src_done)
     5         kx 	@mkdir -p $(build_dir)
     5         kx 	cd $(build_dir) && $(environment) ../$(src_dir_name)/configure \
     5         kx 	  --prefix=$(TOOLCHAIN_PATH)       \
     5         kx 	  --build=$(HOST)                  \
     5         kx 	  --host=$(HOST)                   \
     5         kx 	  --target=$(TARGET)               \
     5         kx 	  --with-as=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as \
     5         kx 	  --with-ld=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld \
     5         kx 	  --datadir=$(TOOLCHAIN_PATH)/share       \
     5         kx 	  --infodir=$(TOOLCHAIN_PATH)/share/info  \
     5         kx 	  --mandir=$(TOOLCHAIN_PATH)/share/man    \
     5         kx 	  $(extra_configure_switches)
     5         kx 	$(environment) $(MAKE) -C $(build_dir) all
     5         kx 	@touch $@
     5         kx 
     5         kx #
     5         kx # Before installing final GCC we remove libgcc builded with second GCC.
     5         kx # The final gcc doesn't install libgcc_s.so, libstdc++.so into $(sysroot_dir)/usr/{lib|lib32}
     5         kx # and it is not needed.
     5         kx # NOTE: if you want to install libgcc_s.so, libstdc++.so and other libraries builded with GCC
     5         kx #       and placed into $(TOOLCHAIN_PATH)/{lib|lib32} during GCC installation into TARGET
     5         kx #       root file system then you should change *.la files. So the lines
     5         kx #
     5         kx # libdir='/opt/toolchain/x86_64-PC-linux-glibc/1.0.0/x86_64-radix-linux-gnu/lib/../lib32'
     5         kx #
     5         kx # where '/opt/toolchain/x86_64-PC-linux-glibc/1.0.0/x86_64-radix-linux-gnu' is the same
     5         kx #    as '$(TOOLCHAIN_PATH)/$(TARGET)'
     5         kx # should be replaced by
     5         kx # libdir='/usr/lib/../lib32'
     5         kx #
     5         kx # In the other words we hould do following
     5         kx #
     5         kx #	@cat $(TOOLCHAIN_PATH)/$(TARGET)/lib$(LIBSUFFIX)/*.la | \
     5         kx #	  $(SED) -e "s|$(TOOLCHAIN_PATH)/$(TARGET)|/usr/lib$(LIBSUFFIX)|g" > \
     5         kx #	  $(TOOLCHAIN_PATH)/$(TARGET)/lib$(LIBSUFFIX)/*.la.tmp && \
     5         kx #	  mv $(TOOLCHAIN_PATH)/$(TARGET)/lib$(LIBSUFFIX)/*.la.tmp \
     5         kx #	     $(target_rootfs)/usr/lib$(LIBSUFFIX)/*.la
     5         kx #
     5         kx # for each *.la file in the $(TOOLCHAIN_PATH)/$(TARGET)/{lib|lib32} directory.
     5         kx #
     5         kx 
     5         kx $(full_install_target): $(full_build_target)
     5         kx 	@rm -f $(sysroot_dir)/usr/lib/libgcc_s.so
     5         kx 	@rm -f $(sysroot_dir)/usr/lib/libgcc_s.so.1
     5         kx ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC) \
     5         kx                              $(TOOLCHAIN_X86_64_GLIBC)),)
     5         kx 	@rm -f $(sysroot_dir)/usr/lib32/libgcc_s.so
     5         kx 	@rm -f $(sysroot_dir)/usr/lib32/libgcc_s.so.1
     5         kx endif
     5         kx 	@$(MAKE) $(environment) -j1 -C $(build_dir) install
     5         kx 	@rm -f $(TOOLCHAIN_PATH)/share/info/dir
     5         kx 	@echo "  $(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/README
     5         kx 	@touch $@