| Kenneth Block 2004-01-23, 6:51 pm |
| 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...quote:
> 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
|