* cxx link option to ignore LD_LIBRARY_PATH at runtime
@ 2004-01-13 16:19 dje
2004-01-13 16:52 ` Kenneth Block
0 siblings, 1 reply; 2+ messages in thread
From: dje @ 2004-01-13 16:19 UTC (permalink / raw)
Hi,
Do you know if there is a cxx (V6.3) option to ignore the setting of
the LD_LIBRARY_PATH at runtime.
On SunOS the -i option of the ld permits to do it
Thanks
Dje
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cxx link option to ignore LD_LIBRARY_PATH at runtime
2004-01-13 16:19 cxx link option to ignore LD_LIBRARY_PATH at runtime dje
@ 2004-01-13 16:52 ` Kenneth Block
0 siblings, 0 replies; 2+ messages in thread
From: Kenneth Block @ 2004-01-13 16:52 UTC (permalink / raw)
I'm not an expert on the subject, but ld's "-no_library_replacement" might
be what you want. I've never used it.
-no_library_replacement
Set an option in the dynamic section of the output object so that rld
does not allow exec-time or run-time changing of the path (except for
super user) to find the shared objects. Typically, the option is used
by system utilities for security purposes.
If your issue is with libcxx.so, then you might want to look at the
following cxx switches.
-rpath path, -norpath
The -rpath option is passed to the linker with its argument. The path
string is a colon-separated list of directories that is meaningful to
the linker only when creating an executable with shared linkage. For
further details about his option, see the ld(1) reference page.
By default, the cxx command passes the location of the Standard
Library directory to ld as an argument to -rpath. The linker then
searches for the shared version of the Class Library in the path
specified by the compiler.
If you do not want this behavior, use the -norpath option. An appli-
cation produced using -norpath uses the installed C++ libraries at
run
time. This is the default on Tru64 UNIX 4.0G or higher and on Linux
Alpha. The -norpath option does not affect any user-specified -rpath
options.
-use_non_shared_libcxx
[Tru64] Instructs the driver to use the non-shared version of libcxx.
-[no]use_system_libcxx
[Tru64] The -nouse_system_libcxx instructs the driver not to link
with
the default shared C++ libraries installed on the system. The
-use_system_libcxx option implies -norpath. This is the default for
Tru64 UNIX Version 4.0G and higher.
"dje" <djeferretti@yahoo.fr> wrote in message
news:198532f8.0401130819.4b5a9a5d@posting.google.com...
> Hi,
>
> Do you know if there is a cxx (V6.3) option to ignore the setting of
> the LD_LIBRARY_PATH at runtime.
> On SunOS the -i option of the ld permits to do it
>
> Thanks
>
> Dje
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-13 16:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13 16:19 cxx link option to ignore LD_LIBRARY_PATH at runtime dje
2004-01-13 16:52 ` Kenneth Block
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox