Skip to content

Commit 53b5327

Browse files
committed
gcc: Specify '--with-headers' when building final gcc
The final gcc build process was relying on `CT_CC_SYSROOT_ARG` to provide the `--with-headers` argument pointing to the libc header directory. Since `CT_CC_SYSROOT_ARG` no longer provides `--with-headers`, this adds one directly to the final gcc build invocation. Without this, gcc build system will not copy all the required libc headers into the `sys-include` directory. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 88fe335 commit 53b5327

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/build/cc/gcc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ do_gcc_core_backend() {
280280
gcc_build|gcc_host)
281281
CT_DoLog EXTRA "Configuring final gcc compiler"
282282
extra_config+=( "${CT_CC_SYSROOT_ARG[@]}" )
283+
extra_config+=( "--with-headers=${CT_PREFIX_DIR}/${CT_TARGET}/include" )
283284
extra_user_config=( "${CT_CC_GCC_EXTRA_CONFIG_ARRAY[@]}" )
284285
log_txt="final gcc compiler"
285286
# to inhibit the libiberty and libgcc tricks later on

0 commit comments

Comments
 (0)