diff options
author | Chris Packham <judge.packham@gmail.com> | 2021-09-26 22:08:36 +1300 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2022-01-12 21:02:38 +1300 |
commit | 557b9d4f8dbf41a587508a16df853d4a7677d04b (patch) | |
tree | 28778ee24216480f07b80490c822763599957898 /config | |
parent | ade8c04d144a2955e52c777e961a26ffbbf42c25 (diff) | |
download | crosstool-ng-557b9d4f8dbf41a587508a16df853d4a7677d04b.tar.gz crosstool-ng-557b9d4f8dbf41a587508a16df853d4a7677d04b.tar.bz2 crosstool-ng-557b9d4f8dbf41a587508a16df853d4a7677d04b.zip |
gcc: Build static libgcc in core_pass1
Per https://github.com/crosstool-ng/crosstool-ng/issues/808 build static
libgcc in the first pass which lets us skip the second one. Building
mingw-w64 requires header files in order to build C++ support so mingw
builds core pass 2. This could probably be cleaned up by splitting
libc_start_files into a separate libc_header step. But for now having
core 2 for mingw-w64 and core 1 for the other libcs will have to do.
Anything that previously selected CC_CORE_PASSES_NEEDED now selects
CC_CORE_PASS_1_NEEDED. The same goes for CC_CORE_PASS_2_NEEDED with the
exception of mingw-w64.
Fixes #808
Fixes #217
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/cc.in | 5 | ||||
-rw-r--r-- | config/libc/glibc.in | 2 | ||||
-rw-r--r-- | config/libc/moxiebox.in | 3 | ||||
-rw-r--r-- | config/libc/musl.in | 2 | ||||
-rw-r--r-- | config/libc/newlib.in | 3 | ||||
-rw-r--r-- | config/libc/uClibc.in | 2 |
6 files changed, 5 insertions, 12 deletions
diff --git a/config/cc.in b/config/cc.in index 187a48d5..0890cc20 100644 --- a/config/cc.in +++ b/config/cc.in @@ -2,11 +2,6 @@ menu "C compiler" -config CC_CORE_PASSES_NEEDED - bool - select CC_CORE_PASS_1_NEEDED - select CC_CORE_PASS_2_NEEDED - config CC_CORE_PASS_1_NEEDED bool diff --git a/config/libc/glibc.in b/config/libc/glibc.in index 659a86b2..1280d985 100644 --- a/config/libc/glibc.in +++ b/config/libc/glibc.in @@ -3,7 +3,7 @@ ## depends on ! WINDOWS && ! BARE_METAL && ARCH_USE_MMU ## select LIBC_SUPPORT_THREADS_NATIVE -## select CC_CORE_PASSES_NEEDED +## select CC_CORE_PASS_1_NEEDED # TBD: select GETTEXT for build only, not for host ## select GETTEXT_NEEDED ## select BINUTILS_FORCE_LD_BFD_DEFAULT diff --git a/config/libc/moxiebox.in b/config/libc/moxiebox.in index e0366411..aa6ff534 100644 --- a/config/libc/moxiebox.in +++ b/config/libc/moxiebox.in @@ -10,8 +10,7 @@ ## select LIBC_SUPPORT_THREADS_NONE ## select COMP_TOOLS_AUTOCONF if !CONFIGURE_has_autoconf_2_65_or_newer || !CONFIGURE_has_autoreconf_2_64_or_newer ## select COMP_TOOLS_AUTOMAKE if !CONFIGURE_has_automake_1_15_or_newer -## select CC_CORE_PASSES_NEEDED if CANADIAN -## select CC_CORE_PASS_2_NEEDED if ! CANADIAN +## select CC_CORE_PASS_1_NEEDED ## select LIBELF_NEEDED ## ## help Secure execution runtime for Moxie architecture. diff --git a/config/libc/musl.in b/config/libc/musl.in index b2ed8bf9..0ea388e4 100644 --- a/config/libc/musl.in +++ b/config/libc/musl.in @@ -3,7 +3,7 @@ ## depends on ! WINDOWS && ! BARE_METAL ## depends on EXPERIMENTAL ## select LIBC_SUPPORT_THREADS_NATIVE -## select CC_CORE_PASSES_NEEDED +## select CC_CORE_PASS_1_NEEDED ## help Musl is a new standard library to power a new generation of Linux-based ## help devices. musl is lightweight, fast, simple, free, and strives to be diff --git a/config/libc/newlib.in b/config/libc/newlib.in index 199eff2a..ce426dae 100644 --- a/config/libc/newlib.in +++ b/config/libc/newlib.in @@ -2,8 +2,7 @@ ## depends on BARE_METAL ## select LIBC_SUPPORT_THREADS_NONE -## select CC_CORE_PASSES_NEEDED if CANADIAN -## select CC_CORE_PASS_2_NEEDED if ! CANADIAN +## select CC_CORE_PASS_1_NEEDED ## help Newlib is a C library intended for use on embedded systems. It is a ## help conglomeration of several library parts, all under free software diff --git a/config/libc/uClibc.in b/config/libc/uClibc.in index 21da64fe..c88bbc8a 100644 --- a/config/libc/uClibc.in +++ b/config/libc/uClibc.in @@ -5,7 +5,7 @@ ## select LIBC_SUPPORT_THREADS_LT ## select LIBC_SUPPORT_THREADS_NONE ## select LIBC_SUPPORT_THREADS_NATIVE if UCLIBC_0_9_33_2_or_later -## select CC_CORE_PASSES_NEEDED +## select CC_CORE_PASS_1_NEEDED ## ## help The de-facto standard for embeded linux systems. ## help |