crosstool-ng/scripts/build/companion_libs
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
..
050-zlib.sh Fix zlib build on win32 near enviroments 2023-12-18 16:28:45 +13:00
070-zstd.sh Add zstd to the companion libs 2023-02-08 17:13:42 +13:00
100-gmp.sh Enable support for building libgccjit 2022-12-18 21:20:50 +13:00
110-mpfr.sh mpfr: Add support of building MPFR for target 2023-05-19 15:54:16 +12:00
121-isl.sh Enable support for building libgccjit 2022-12-18 21:20:50 +13:00
130-cloog.sh Enable support for building libgccjit 2022-12-18 21:20:50 +13:00
140-mpc.sh Enable support for building libgccjit 2022-12-18 21:20:50 +13:00
200-libelf.sh Avoid adding arch/cpu/tune flags for target to GCC build 2018-06-05 00:16:37 -07:00
210-expat.sh Rename JOBSFLAGS -> CT_JOBSFLAGS 2019-04-04 18:57:42 -07:00
220-ncurses.sh Rename JOBSFLAGS -> CT_JOBSFLAGS 2019-04-04 18:57:42 -07:00
320-libiconv.sh Rename JOBSFLAGS -> CT_JOBSFLAGS 2019-04-04 18:57:42 -07:00
330-gettext.sh Restrict *-uclibc,* canadians to gettext 0.20 2022-02-11 00:47:51 -08:00
340-picolibc.sh picolibc: Allow default memory layout values to be configured 2023-04-19 15:13:55 +12:00
350-newlib_nano.sh newlib: Add missing linker options for nano.specs 2023-05-10 17:30:15 +04:00
400-gnuprumcu.sh gnuprumcu: Pass host sysroot to build toolchain 2024-03-11 17:29:13 +13:00