[Top][All Lists]

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

Bug regarding "-Wl" setting of libtool in autoconf context.

Subject: Bug regarding "-Wl" setting of libtool in autoconf context.
Date: Tue, 20 Oct 2009 12:43:20 +0200


When libtool is used in conjunction with autoconf and automake, the "wl="" values in the generated libtool
script remain empty (instead of wl="-Wl,") in many cases, even with compilers sur as PGI or IBM XL compilers
which require link option to be passed through -Wl,... as they do not accept direct syntax.

Link then fails as options are passed directly to the compiler without the -Wl,... protection,
and the compiler complains.

This is a longstanding bug, an I found a workaround in a configure.in file from HDF5, as follows :

if test "x$GCC" != "xyes"; then
  echo 'fixing $wl in libtool'
ed - libtool <<EOF 2> /dev/null

But this workaround occasionally fails to work with libtool2 (I have had to move it closer to the end of configure.ac
to have it work most of the time, so I suspect a race condition with other auconf actions).

I do not know if this bug has been reported before (it is old, but still there), an am not sure if the bug is in
autoconf or in libtool, but it would seem that setting wl="-Wl," by default and only unsetting it for GCC or
a compiler known not to need it would seem sane.

Best regards,

        Yvan Fournier

Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à 
l'intention exclusive des destinataires et les informations qui y figurent sont 
strictement confidentielles. Toute utilisation de ce Message non conforme à sa 
destination, toute diffusion ou toute publication totale ou partielle, est 
interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le 
copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si 
vous avez reçu ce Message par erreur, merci de le supprimer de votre système, 
ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support 
que ce soit. Nous vous remercions également d'en avertir immédiatement 
l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie 
électronique arrivent en temps utile, sont sécurisées ou dénuées de toute 
erreur ou virus.

This message and any attachments (the 'Message') are intended solely for the 
addressees. The information contained in this Message is confidential. Any use 
of information contained in this Message not in accord with its purpose, any 
dissemination or disclosure, either whole or partial, is prohibited except 
formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any 
part of it. If you have received this message in error, please delete it and 
all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or 

reply via email to

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