[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in detecting GNU ld
From: |
Luke Bakken |
Subject: |
Bug in detecting GNU ld |
Date: |
Sun, 30 Sep 2001 09:43:58 -0700 (PDT) |
Hello,
I believe I have discovered a bug in how libtool detects GNU ld (and
perhaps other GNU programs, like nm).
Here is a typical detection conditional:
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
lt_cv_prog_gnu_ld=yes
else
lt_cv_prog_gnu_ld=no
fi
Notice that the statement $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)'
will return 0 if the egrep succeeds, and that this represents 'false' to
the if statement. If GNU ld is on the system, then it will not be
detected correctly!!!
To fix this, I have swapped the 'yes' and 'no' where this situation
occurs - an alternative is to place a ! after the if and before the
commands.
I have attached the output of the following statement in hopes of tracking
down all of these problems:
address@hidden ~/libtool-1.4.2
$ grep -r -A5 -B5 'BFD' * > ../bfd.err 2>&1
If I can be of any assistance, please let me know.
Thanks,
Luke Bakken
bfd.err
Description: Output
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug in detecting GNU ld,
Luke Bakken <=