]> git.ipfire.org Git - thirdparty/openwrt.git/commit
toolchain: gcc: make config consistent with glibc/musl 18646/head
authorKonstantin Demin <rockdrilla@gmail.com>
Fri, 2 May 2025 10:42:42 +0000 (13:42 +0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 2 May 2025 15:27:33 +0000 (17:27 +0200)
commit57841c83d9c1503a19212766639d17ae5019bb8c
tree19340728a876096e1e273c09ec6a6a578a77a916
parent89ee79b77cd36db8071c9ae884394bb8bbbd836c
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>
toolchain/gcc/common.mk
toolchain/gcc/final/Makefile
toolchain/gcc/initial/Makefile
toolchain/gcc/minimal/Makefile