Skip to Content.
Sympa Menu

ndt-users - Re: Altering rpath for web100clt

Subject: ndt-users list created

List archive

Re: Altering rpath for web100clt


Chronological Thread 
  • From: Aaron Brown <>
  • To: "" <>
  • Cc: "" <>
  • Subject: Re: Altering rpath for web100clt
  • Date: Fri, 15 May 2015 12:39:58 +0000
  • Accept-language: en-US
  • Authentication-results: a.hx63.net; dkim=none (message not signed) header.d=none;

Hi Andrea,

The runtime library path is handled by the dynamic linker, not at compile
time. Try adding the path to /etc/ld.so.conf, and then running ldconfig.

Cheers,
Aaron

> On May 15, 2015, at 4:37 AM,
>
> wrote:
>
> Hello,
>
> In my environment I need to place libraries in non standard directories, and
> I'm having issues in compiling the CLI client correctly.
>
> Basically:
>
> 1. LD_RUN_PATH is ignored
> 2. adding "-Wl,-rpath,/a/weird/dir" to LDFLAGS only affects the search path
> for libpthread (which I don't need to do) and not for libjansson.
> 3. modifying NDTLIBDIR has exactly the same effect as point 2.
>
> My full configure command is as follows:
>
> ./configure --prefix=$MYDIR LDFLAGS="-L ../jansson-2.7/src/.libs/
> -Wl,-rpath,/my/funny/dir" CPPFLAGS="-I../../jansson-2.7/src"
> LIBS="-L../../jansson-2.7/src/.libs/" --without-java --without-flash
>
> The resulting client can only work if I alter LD_LIBRARY_PATH because
> otherwise it cannot find libjansson. I don't understand how and where the
> run
> time library path is set for web100clt, could you please advise?
>
> Thanks!
> Andrea




Archive powered by MHonArc 2.6.16.

Top of Page