]> git.ipfire.org Git - thirdparty/gcc.git/commit
ltmain.sh: allow more flags at link-time
authorSam James <sam@gentoo.org>
Wed, 14 Aug 2024 03:09:39 +0000 (04:09 +0100)
committerSam James <sam@gentoo.org>
Wed, 25 Sep 2024 18:05:24 +0000 (19:05 +0100)
commited6dccd00d8eedc8f671133f90e6a0cd12f1f05d
tree4950775e6ddfdc3b6b067d4dd2ab4d82d2d7912c
parent82d97278cc3adae40a13eef9ae6f339f87d1f8f6
ltmain.sh: allow more flags at link-time

libtool defaults to filtering flags passed at link-time.

This brings the filtering in GCC's 'fork' of libtool into sync with
upstream libtool commit 22a7e547e9857fc94fe5bc7c921d9a4b49c09f8e.

In particular, this now allows some harmless diagnostic flags (especially
useful for things like -Werror=odr), more optimization flags, and some
Clang-specific options.

GCC's -flto documentation mentions:
> To use the link-time optimizer, -flto and optimization options should be
> specified at compile time and during the final link. It is recommended
> that you compile all the files participating in the same link with the
> same options and also specify those options at link time.

This allows compliance with that.

* ltmain.sh (func_mode_link): Allow various flags through filter.
ltmain.sh