gcc: update to version 7.4.0, Add config options

for coping libc.a, libpthread.a and libstdc++ to target.
Add config option to eliminate need for -lstdc++ and -lgcc_pic
switches when linking statically

Signed-off-by: Noble Pepper <noblepepper@gmail.com>
This commit is contained in:
Noble Pepper
2019-06-25 08:18:06 -05:00
committed by Rosen Penev
parent 1bb888f054
commit 5caa181b17
46 changed files with 644 additions and 1373 deletions

34
devel/gcc/Config.in Normal file
View File

@@ -0,0 +1,34 @@
# gcc library configuration
menu "Libraries"
depends on PACKAGE_gcc
config INCLUDE_STATIC_LIBC
bool "Include static libc on target"
help
Copies libc.a to target device
Increases the size of an already
very large package
default n
config INCLUDE_STATIC_LIBPTHREAD
bool "Include static libptread on target"
help
Copies libpthread.a to target device
Increases the size of an already
very large package
default n
config INCLUDE_STATIC_LIBSTDC
bool "Include static libstdc++ on target"
help
Copies libstdc++.a to target device
Increases the size of an already
very large package
default n
config INCLUDE_STATIC_LINK_SPEC
depends on INCLUDE_STATIC_LIBSTDC
bool "Generate spec file for easy static c++ linking on target"
help
Creates a spec file for gcc to eliminate the need for
-lstdc++, libgcc_pic and -static-libstdc flags when
statically linking c++ programs
default n
endmenu