Setting the dynamic linker with an environment variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The linker option -L can be set with the environment variable
LIBRARY_PATH, and the linker option -Wl,-rpath can be set with the
LD_RUN_PATH environment variable. Is there an environment variable to
set the -Wl,--dynamic-linker option? It would be useful for compiling
stubborn packages that don't respect the LDFLAGS environment variable.
(openssl is one such stubborn package, I've discovered).

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

Thanks,
Shaun

https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
http://manpages.ubuntu.com/manpages/lucid/man1/ld.1.html
http://en.wikipedia.org/wiki/Rpath




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux