crosstool-ng/scripts/build
Dimitar Dimitrov c64500d94b gnuprumcu: Pass host sysroot to build toolchain
In canadian builds, the target toolchain running on the build
machine is not compiling and installing target Newlib.  Thus it
cannot by itself link target executables.  This results in
errors for gnuprumcu package when its configure script attempts
to test the compiler:

     .../ld: cannot find crt0.o: No such file or directory
     configure:3738: error: C compiler cannot create executables

Fix by passing the host toolchains's sysroot in target CFLAGS.

While at it, also add a missing passing of target LDFLAGS.

Successfully tested the following canadian builds:
  x86_64-unknown-linux-gnu,pru
  x86_64-w64-mingw32,pru
  arm-unknown-linux-gnueabihf,pru

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
2024-03-11 17:29:13 +13:00
..
arch Add support for 32 and 64-bit PA-RISC linux build targets. 2023-11-25 15:41:47 +13:00
binutils Revert "binutils: Disable glob for better portability" 2024-03-01 14:45:27 +13:00
cc Add option to re-enable ˋlibstdc++ˋ on avr targets. 2023-08-14 16:12:12 +12:00
companion_libs gnuprumcu: Pass host sysroot to build toolchain 2024-03-11 17:29:13 +13:00
companion_tools Convert tabs to spaces 2022-02-11 00:47:51 -08:00
debug gdb: Fix extra config variable name for cross GDB 2024-03-01 14:48:05 +13:00
kernel Add support for no-mmu microblaze 2021-08-25 17:36:47 +10:00
libc glibc: fix the broken build for glibc 2.19 with gcc 13. 2024-03-01 14:48:49 +13:00
test_suite Fix the references to old config variables 2017-07-08 10:57:56 -07:00
arch.sh Add config flags for omitting 'arch' and 'vendor' 2018-12-10 01:10:01 -08:00
companion_libs.sh Build companion libs for target. 2015-11-13 10:24:22 -08:00
companion_tools.sh Some locations were missed while renaming kconfig symbols 2017-07-08 10:57:57 -07:00
debug.sh Some locations were missed while renaming kconfig symbols 2017-07-08 10:57:57 -07:00
internals.sh Add option to build toolchain tarball 2022-06-15 21:51:58 +12:00
libc.sh Fold libc_start_files into libc 2022-02-11 00:47:51 -08:00
test_suite.sh Some locations were missed while renaming kconfig symbols 2017-07-08 10:57:57 -07:00