On Tue, Sep 9, 2014 at 3:30 PM, Shaun Jackman <sjackman@xxxxxxxxx> 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