[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Frederic Berat
Subject: opt_duplicate_compiler_generated_deps
Date: Thu, 3 Feb 2022 16:26:55 +0100

Hello libtool list,

We recently came across the following bug on Fedora:

While investigating it, we came to the conclusion that libtool seems to wrongly deduplicate the following postdeps:
postdeps="-lstdc++ -lm -lgcc_s -lc -lgcc_s"
That leads us to the following change in principle:

diff --git a/build-aux/ b/build-aux/
index e4efc925..5e8014e8 100644
--- a/build-aux/
+++ b/build-aux/
@@ -521,7 +521,7 @@ libtool_validate_options ()
     case $host in
       # Solaris2 added to fix
       # see also:
-      *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
+      *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2* | *linux*)
         # don't eliminate duplications in $postdeps and $predeps

In other words, and if we are not wrong, the more the time passes, the more this case grows.
Then the question is, wouldn't it make sense to actually have "opt_duplicate_compiler_generated_deps=:" as the default behavior, and be done with it ?

Frédéric Bérat

Senior Software Engineer, Platform Tools

Red Hat   

reply via email to

[Prev in Thread] Current Thread [Next in Thread]