This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Setting the dynamic linker with an environment variable
- From: Ian Lance Taylor <iant at google dot com>
- To: Shaun Jackman <sjackman at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 9 Sep 2014 17:13:00 -0700
- Subject: Re: Setting the dynamic linker with an environment variable
- Authentication-results: sourceware.org; auth=none
- References: <CADX6M3rJQdiwzqMxvDxsd6p=pobSGEHGeZfv79-YA9ZQxxcS2g at mail dot gmail dot com>
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