Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-22-2010, 04:23 PM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 22

Rep: Reputation: 0
Disable rpath at runtime?


I'm having issues with the Linux rpath functionality. It seems the rpath provides the ability for a library to embed the location of other dependent libries within the shared object file.

I'm trying to disable this functionality. At my company we install libraries on NFS mounts, so they can be available on any machine. The problem I have is that my application runs on a few hundred machines. When my application is running, the NFS server can be overloaded with thousands of processes picking up library files. To get around this, I have installed the libraries locally, but I'm still picking up the shared object from NFS.

From my research, it seem the protocol for Linux is to first check the LD_LIBRARY_PATH, then check the rpath if it cannot find the library. However, on my system, it seems to do the opposite, and is only going to LD_LIBRARY_PATH if rpath fails.

Is there anyway to disable the rpath completely, and only use LD_LIBRARY_PATH? Keep in mind, I'm looking for a runtime solution. It's not feasible for me to re-link all the libraries with disable rpath flag.

Old 02-22-2010, 05:13 PM   #2
LQ Newbie
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 22

Original Poster
Rep: Reputation: 0
Actually, I found a solution. I can disable rpath for the top level binary, and it seems to propogate to the dependent libraries as well:



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
try using -rpath or -rpath-link knobby67 Programming 5 11-12-2015 02:04 PM
Java Rpath ? maas187 Linux - Software 2 09-27-2009 05:20 AM
gcc option -Wl,-rpath : what does it mean? stupendus Programming 2 08-13-2007 10:21 AM
rPath remaster phantom_cyph Linux - General 3 05-19-2007 08:54 AM
LXer: rPath Launches rBuilder 2.0 LXer Syndicated Linux News 0 08-15-2006 07:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration