2005-01-16 11:43:02 +00:00
|
|
|
# Choose gcc version.
|
2006-03-19 03:50:18 +00:00
|
|
|
|
2005-01-16 11:43:02 +00:00
|
|
|
choice
|
2006-04-20 23:03:42 +00:00
|
|
|
prompt "GCC compiler Version" if TOOLCHAINOPTS
|
toolchain: gcc: switch default to 13
Use GCC 13 instead of GCC 12 by default.
All target kernels are building with GCC 13.
Most packages from the feed are building fine.
The root file systems is getting a little bit smaller for MIPS 32 BE
and aarch64.
With GCC 12 I got these sizes for lantiq/xrx200:
7,005,867 openwrt-lantiq-xrx200-tplink_tdw8970-initramfs-kernel.bin
With GCC 13 I got these sizes for lantiq/xrx200:
6,989,754 openwrt-lantiq-xrx200-tplink_tdw8970-initramfs-kernel.bin
With GCC 12 I got these sizes for armsr/armv8:
13,083,836 openwrt-armsr-armv8-generic-ext4-combined.img.gz
4,900,240 openwrt-armsr-armv8-generic-ext4-rootfs.img.gz
20,142,592 openwrt-armsr-armv8-generic-kernel.bin
With GCC 13 I got these sizes for armsr/armv8:
13,068,966 openwrt-armsr-armv8-generic-ext4-combined.img.gz
4,893,078 openwrt-armsr-armv8-generic-ext4-rootfs.img.gz
20,142,592 openwrt-armsr-armv8-generic-kernel.bin
Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2023-05-12 16:11:10 +00:00
|
|
|
default GCC_USE_VERSION_13
|
2005-01-16 11:43:02 +00:00
|
|
|
help
|
|
|
|
Select the version of gcc you wish to use.
|
|
|
|
|
2021-07-05 23:21:46 +00:00
|
|
|
config GCC_USE_VERSION_11
|
|
|
|
bool "gcc 11.x"
|
2022-05-06 14:42:06 +00:00
|
|
|
|
|
|
|
config GCC_USE_VERSION_12
|
|
|
|
bool "gcc 12.x"
|
2023-04-27 21:03:14 +00:00
|
|
|
|
|
|
|
config GCC_USE_VERSION_13
|
|
|
|
bool "gcc 13.x"
|
2005-01-16 11:43:02 +00:00
|
|
|
endchoice
|
|
|
|
|
2009-11-12 13:42:07 +00:00
|
|
|
config GCC_USE_GRAPHITE
|
|
|
|
bool
|
|
|
|
prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
|
2010-04-20 16:18:08 +00:00
|
|
|
|
2006-04-20 23:03:42 +00:00
|
|
|
config EXTRA_GCC_CONFIG_OPTIONS
|
2005-04-05 18:21:58 +00:00
|
|
|
string
|
2009-09-10 14:32:36 +00:00
|
|
|
prompt "Additional gcc configure options" if TOOLCHAINOPTS
|
2005-01-16 11:43:02 +00:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Any additional gcc options you may want to include....
|
|
|
|
|
2018-01-07 16:41:35 +00:00
|
|
|
config GCC_DEFAULT_PIE
|
|
|
|
bool
|
|
|
|
prompt "Build executable with PIE enabled by default" if TOOLCHAINOPTS
|
|
|
|
help
|
|
|
|
Use gcc configure option --enable-default-pie to turn on -fPIE and -pie by default.
|
|
|
|
|
|
|
|
config GCC_DEFAULT_SSP
|
|
|
|
bool
|
|
|
|
prompt "Build executable with Stack-Smashing Protection enabled by default" if TOOLCHAINOPTS
|
|
|
|
help
|
|
|
|
Use gcc configure option --enable-default-ssp to turn on -fstack-protector-strong by default.
|
|
|
|
|
2011-06-23 11:37:39 +00:00
|
|
|
config SJLJ_EXCEPTIONS
|
|
|
|
bool
|
|
|
|
prompt "Use setjump()/longjump() exceptions" if TOOLCHAINOPTS
|
|
|
|
help
|
|
|
|
Use old setjump()/longjump() exceptions instead of the newer
|
|
|
|
frame unwinding exceptions handling routines. Warning: increases
|
|
|
|
code size and runtime memory usage.
|
|
|
|
|
2011-06-23 11:46:24 +00:00
|
|
|
config INSTALL_GFORTRAN
|
|
|
|
bool
|
|
|
|
prompt "Build/install fortran compiler?" if TOOLCHAINOPTS
|
|
|
|
help
|
|
|
|
Build/install GNU fortran compiler ?
|
2016-07-15 10:17:20 +00:00
|
|
|
|
|
|
|
config INSTALL_GCCGO
|
|
|
|
bool
|
|
|
|
prompt "Build/install Go compiler?" if TOOLCHAINOPTS
|
2017-02-27 18:27:50 +00:00
|
|
|
depends on USE_GLIBC || BROKEN
|
2016-07-15 10:17:20 +00:00
|
|
|
help
|
|
|
|
Build/install GNU gccgo compiler ?
|