This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-Wl conversion in "specs" file
- From: Frank Cusack <fcusack at fcusack dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 3 Aug 2004 04:23:43 -0700
- Subject: -Wl conversion in "specs" file
The *link directive in my gcc-3.4.0 specs file contains '%{Wl,*:%*}' which
says to strip the -Wl, part of the arg and pass the rest to the linker.
However, removal of this directive has no effect: -Wl, arguments are
still passed on correctly to the linker.
Is this conversion now implicit and not handled by specs? (It seems so.)
If so, shouldn't this be removed from the specs file? I'd rather see
it used, but at least removal doesn't give the false impression that
this directive is honored.
I wanted to transfrom -Wl,-rpath to -Wl,-R so that broken Makefiles which
use the GNU-only -rpath will work with the Solaris linker which only
accepts -R. I discovered this problem by changing the directive to
'%{Wl,-rpath:-R} %{Wl,*:%*}' which had no effect. (And then I further
found that removing it entirely has no effect.) I've verified with
gcc -v that I'm playing with the correct specs file.
thx
/fc