From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2eec8794a3720a0e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-01-13 08:52:48 PST Path: archiver1.google.com!news1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: "Kenneth Block" Newsgroups: comp.unix.tru64 References: <198532f8.0401130819.4b5a9a5d@posting.google.com> Subject: Re: cxx link option to ignore LD_LIBRARY_PATH at runtime X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Message-ID: Date: Tue, 13 Jan 2004 16:52:47 GMT NNTP-Posting-Host: 16.115.216.30 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1074012767 16.115.216.30 (Tue, 13 Jan 2004 08:52:47 PST) NNTP-Posting-Date: Tue, 13 Jan 2004 08:52:47 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:11097 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" 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