This is the mail archive of the gcc-help@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: Setting the dynamic linker with an environment variable


On Tue, Sep 9, 2014 at 3:30 PM, Shaun Jackman <sjackman@gmail.com> wrote:
>
> Is there an environment variable to
> set the -Wl,--dynamic-linker option?

No.  That's a fairly unusual thing to want to do.


> Alternatively, how can I modify the default `specs` file of GCC to add
> to the default linker options
> -L$prefix/lib -Wl,-rpath,$prefix/lib -Wl,--dynamic-linker
> $prefix/lib/ld-linux-x86-64.so.2

If you want to go that route, add it to the line after "*link:" in the
specs file.

Ian


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