Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Kenneth Block" <krblock@computer.org>
Subject: Re: cxx link option to ignore LD_LIBRARY_PATH at runtime
Date: Tue, 13 Jan 2004 16:52:47 GMT	[thread overview]
Message-ID: <znVMb.12175$Ds1.3152@news.cpqcorp.net> (raw)
In-Reply-To: 198532f8.0401130819.4b5a9a5d@posting.google.com

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




      reply	other threads:[~2004-01-13 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-13 16:19 cxx link option to ignore LD_LIBRARY_PATH at runtime dje
2004-01-13 16:52 ` Kenneth Block [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox