-Wl conversion in "specs" file

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

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux