From 19faf1fa1f5aff4854377824e6d4a8b9c0c09032 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 10 Jan 2024 12:09:51 +0100 Subject: Introduce and honor BOOTSTRAP_CFLAGS ... and drop rule-injected LDFLAGS for all bootstrap targets in stage-0, as those flags might not be supported by the unknown bootstrap compiler. --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 06ee421..19f4c9c 100644 --- a/README.md +++ b/README.md @@ -119,10 +119,10 @@ For bootstrapping the toolchains, the build host must be a Linux system with: 3. C compiler (e.g., TinyCC, old GCC) The C compiler for bootstrapping can be specified by setting the fields -`BOOTSTRAP_CC` and `BOOTSTRAP_PATH` in configuration variable `TOOLCHAIN_CONFIG` -(e.g., on command line `-D'{"TOOLCHAIN_CONFIG": {"BOOTSTRAP_CC": "gcc"}}'`). If -not set, the C compiler is assumed to be `cc` available in the search paths -`/bin` or `/usr/bin`. +`BOOTSTRAP_CC`, `BOOTSTRAP_CFLAGS`, and `BOOTSTRAP_PATH` in configuration +variable `TOOLCHAIN_CONFIG` (e.g., on command line `-D'{"TOOLCHAIN_CONFIG": +{"BOOTSTRAP_CC": "gcc"}}'`). If not set, the C compiler is assumed to be `cc` +available in the search paths `/bin` or `/usr/bin`. *Note that currently supported build hosts are required to be an `x86_64` architecture and use either the GNU or musl C library.* @@ -158,6 +158,8 @@ Fields for building the toolchains: - `BOOTSTRAP_CC`: The initial C compiler for bootstrapping (default: `"cc"`) +- `BOOTSTRAP_CFLAGS`: + The initial C compile flags for bootstrapping (default: `["-w"]`) - `BOOTSTRAP_PATH`: Search path for the initial C compiler (default: `["/bin", "/usr/bin"]`) - `HOST_SYSTEM_HDR_DIR`: -- cgit v1.2.3