openwrt/toolchain/gcc
Konstantin Demin 57841c83d9
toolchain: gcc: make config consistent with glibc/musl
I've observed configuration drift for GCC between musl and glibc
(especially it's final stage):

  # musl
  lt_cv_prog_compiler_static_works=yes
  lt_cv_prog_compiler_static_works_CXX=yes
  lt_cv_sys_max_cmd_len=1572864

  # glibc
  lt_cv_prog_compiler_static_works=no
  lt_cv_prog_compiler_static_works_CXX=no
  lt_cv_sys_max_cmd_len=512

These changes should prevent this issue in future:

  export lt_cv_prog_compiler_static_works=yes
  export lt_cv_prog_compiler_static_works_CXX=yes
  export lt_cv_sys_max_cmd_len=1572864

Also:

- provide custom autotools/libtool variables via properly named
  variable ("GCC_CONFIGURE_VARS"),
- move variables from "GCC_MAKE" to "GCC_CONFIGURE_VARS"
  (at this moment only "gcc_cv_libc_provides_ssp=yes" for musl),
- propagate it's usage for both "./configure" and "make".

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18646
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-05-02 17:27:33 +02:00
..
files do not use the wrapper scripts for exportable toolchains internally. on some systems the wrapper scripts are broken, and their use should be opt-in 2009-11-19 17:23:31 +00:00
final toolchain: gcc: make config consistent with glibc/musl 2025-05-02 17:27:33 +02:00
initial toolchain: gcc: make config consistent with glibc/musl 2025-05-02 17:27:33 +02:00
minimal toolchain: gcc: make config consistent with glibc/musl 2025-05-02 17:27:33 +02:00
patches-11.x toolchain: gcc: fix build error with Xcode 16.3 2025-04-16 14:38:34 +02:00
patches-12.x toolchain: gcc: fix build error with Xcode 16.3 2025-04-16 14:38:34 +02:00
patches-13.x toolchain: gcc: fix build error with Xcode 16.3 2025-04-16 14:38:34 +02:00
patches-14.x toolchain: gcc: fix build error with Xcode 16.3 2025-04-16 14:38:34 +02:00
common.mk toolchain: gcc: make config consistent with glibc/musl 2025-05-02 17:27:33 +02:00
Config.in toolchain: gcc: switch default to 14 2025-04-29 12:27:32 +02:00
Config.version toolchain: gcc: switch default to 14 2025-04-29 12:27:32 +02:00
exclude-testsuite toolchain: add gcc 7.1.0 support 2017-05-25 19:01:07 +02:00