Setting the dynamic linker with an environment variable
Ian Lance Taylor
iant@google.com
Wed Sep 10 00:13:00 GMT 2014
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
More information about the Gcc-help
mailing list