branch: master commit bc61f9756ff94735e0fb910df5e7eb193e81ed2c Author: Frédéric Bérat <fbe...@redhat.com> AuthorDate: Thu Feb 3 16:26:55 2022 +0100
ltmain.in: Compiler dependencies wrongly deduplicated Removing duplicate compiler dependencies causes linking problems on linux with GCC libraries. This deduplication optimization is no longer used for linux hosts. Reported: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=75462 * build-aux/ltmain.in: Add linux to list of hosts that do not remove duplicate compiler dependencies. * NEWS: Update. --- NEWS | 4 ++++ build-aux/ltmain.in | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index e1302ab7..2412efff 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,10 @@ NEWS - list of user-visible changes between releases of GNU Libtool - Add tagging for Objective-C and Objective-C++, OBJC and OBJCXX. +** Bug fixes: + + - Fix wrongly deduplicated compiler dependencies on linux. + * Noteworthy changes in release 2.5.4 (2024-11-20) [stable] diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 43cd3b1a..caec9db2 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -589,7 +589,7 @@ libtool_validate_options () case $host_os in # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788 - cygwin* | mingw* | windows* | pw32* | cegcc* | solaris2* | os2*) + cygwin* | mingw* | windows* | pw32* | cegcc* | solaris2* | os2* | *linux*) # don't eliminate duplications in $postdeps and $predeps opt_duplicate_compiler_generated_deps=: ;;