This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sh-unknown-linux-gnu (Support of specific targets (sh3, sh4, sh3eb, and sh4eb))


M. R. Brown wrote:
 > What's with the custom -rpath-link options?  These look very specific to a
 > customized setup, why are the being included in the generic (unknown)
 > linux.h ?
 > 
 > Doesn't GCC and binutils already know where to look for multilibbed
 > libraries?

Good point.  No, it doesn't know for shared library.

I think that we should not have needed such things.  However, current
binutils (at least) doesn't look multilib for shared libraries.
Supporse ldscripts of binutils are $PATH_TO_LDSCRIPTS, then, it
searches $PATH_TO_LDSCRIPTS/../ (upper directory of ldscript).  In
case of	$PATH_TO_LDSCRIPTS == /usr/sh-linux/lib/ldscripts,
it (only) searches /usr/sh-linux/lib for shared library.

And for me, there's no way to avoid specific path (/usr/sh-linux) in
the spec file.  Do you have any idea?
-- 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]