]> 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>
Mon, 13 Jan 2025 17:45:38 +0000 (19:45 +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.

build-aux/ltmain.in

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=:
         ;;