This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: How to build an RPATH into gcc?


prj@po.cwru.edu (Paul Jarc) writes:

> gcc doesn't understand -R; only ld does.  So the flag to pass to gcc
> would be -Wl,-R,/usr/local/lib.

He is using a NetBSD target, for which gcc will pass -R to the
linker.  See NETBSD_LINK_SPEC_ELF in config/netbsd-elf.h.

(I've already tried to help him, but he doesn't seem interested in
investigating why an approach which works fine for me doesn't work for
him, so I gave up.)

Ian


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