GNU bug report logs -
#12304
libtool parse of nagfor -Wl,-Wl,, gives incorrect result
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hello,
On 08/29/2012 01:56 PM, Thomas Jahns wrote:
> I'm not sure of the best way to address this unfortunate coincidence of compiler
> and libtool flags. My, perhaps naïve, idea would be to test whether an argument
> starting with -Wl, also matches $wl and, in case $wl does not equal "-Wl," pass
> the flag argument on to the linker unaltered.
I've now prepared a patch vs. the repository state that seems to work for me[1].
Regards, Thomas
[1] Tested with
- gfortran/gcc on Debian GNU/Linux 6.0.5 i386/x86_64
- nagfor/gcc on Debian GNU/Linux 6.0.5 i386/x86_64
- ifort/icc on Debian GNU/Linux 6.0.5 i386/x86_64
- xlf/xlc on AIX 6.1 Power6
P.S.: I'll try CentOS 5.6 Linux x86_64 with ifort/icc and nagfor/gcc and
gfortran/gcc next but can't say when I'll get around to that because I'll need
to fix an unrelated bug with mpxlf on AIX first.
--
Thomas Jahns
DKRZ GmbH, Department: Application software
Deutsches Klimarechenzentrum
Bundesstraße 45a
D-20146 Hamburg
Phone: +49-40-460094-151
Fax: +49-40-460094-270
Email: Thomas Jahns <jahns <at> dkrz.de>
[0001-Fix-handling-of-Wl-Wl-argument-prefix-of-NAG-fortran.patch (text/x-patch, attachment)]
[smime.p7s (application/pkcs7-signature, attachment)]
This bug report was last modified 12 years and 349 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.