]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
ltmain.in: Compiler dependencies wrongly deduplicated
authorFrédéric Bérat <fberat@redhat.com>
Thu, 3 Feb 2022 15:26:55 +0000 (16:26 +0100)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Thu, 13 Feb 2025 15:01:38 +0000 (17:01 +0200)
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
build-aux/ltmain.in

diff --git a/NEWS b/NEWS
index e1302ab76e051ae0811de77a8d898757c6686f10..2412efff29c98e362dbb2464ddd08bd875690b96 100644 (file)
--- 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]
 
index 43cd3b1ab2ec27e8fe7bc5ea5b419870cf48e578..caec9db292135402f605e0b88889446d566aa400 100644 (file)
@@ -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=:
         ;;