* path for shared objects
@ 1994-07-14 19:55 Sajee
1994-07-15 19:24 ` Daniel K. Edwin
0 siblings, 1 reply; 2+ messages in thread
From: Sajee @ 1994-07-14 19:55 UTC (permalink / raw)
How do I set up a link such that at link time I specify the full pathanme of a shared object (eg. /home/scm/lib/libscm.so) and at run time the loader will look for the object in the directory I specified; but if the object isn't in the directory I specified the loader should use LD_LIBRARY_PATH. How can this be done?
I thought -rpath option was the answer but I can't get it to work correctly.
HEEELLLP!!
please mail all responses to scm@chesapeake.com
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: path for shared objects
1994-07-14 19:55 path for shared objects Sajee
@ 1994-07-15 19:24 ` Daniel K. Edwin
0 siblings, 0 replies; 2+ messages in thread
From: Daniel K. Edwin @ 1994-07-15 19:24 UTC (permalink / raw)
In article <Jul.14.15.55.35.1994.10161@remus.rutgers.edu>, mathew@remus.rutgers.edu (Sajee) writes:
|> Path: mrnews.mro.dec.com!pa.dec.com!decuac.dec.com!haven.umd.edu!news.umbc.edu!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!rutgers!dziuxsolim.rutgers.edu!igor.rutgers.edu!remus.rutgers.edu!mathew
|> From: mathew@remus.rutgers.edu (Sajee)
|> Newsgroups: comp.unix.osf.osf1
|> Subject: path for shared objects
|> Message-ID: <Jul.14.15.55.35.1994.10161@remus.rutgers.edu>
|> Date: 14 Jul 94 19:55:35 GMT
|> Organization: Rutgers Univ., New Brunswick, N.J.
|> Lines: 10
|>
|>
|> How do I set up a link such that at link time I specify the full pathanme of a shared object (eg. /home/scm/lib/libscm.so) and at run time the loader will look for the object in the directory I specified; but if the object isn't in the directory I specified the loader should use LD_LIBRARY_PATH. How can this be done?
|>
|> I thought -rpath option was the answer but I can't get it to work correctly.
|>
|> HEEELLLP!!
|>
|> please mail all responses to scm@chesapeake.com
|>
|> Thanks
|>
In article <Jul.14.15.55.35.1994.10161@remus.rutgers.edu>, mathew@remus.rutgers.edu (Sajee) writes:
|> Path: mrnews.mro.dec.com!pa.dec.com!decuac.dec.com!haven.umd.edu!news.umbc.edu!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!rutgers!dziuxsolim.rutgers.edu!igor.rutgers.edu!remus.rutgers.edu!mathew
|> From: mathew@remus.rutgers.edu (Sajee)
|> Newsgroups: comp.unix.osf.osf1
|> Subject: path for shared objects
|> Message-ID: <Jul.14.15.55.35.1994.10161@remus.rutgers.edu>
|> Date: 14 Jul 94 19:55:35 GMT
|> Organization: Rutgers Univ., New Brunswick, N.J.
|> Lines: 10
|>
|>
|> How do I set up a link such that at link time I specify the full pathanme of a shared object (eg. /home/scm/lib/libscm.so) and at run time the loader will look for the object in the directory I specified; but if the object isn't in the directory I specified the loader should use LD_LIBRARY_PATH. How can this be done?
|>
|> I thought -rpath option was the answer but I can't get it to work correctly.
|>
|> HEEELLLP!!
|>
|> please mail all responses to scm@chesapeake.com
|>
|> Thanks
|>
In article <Jul.14.15.55.35.1994.10161@remus.rutgers.edu>, mathew@remus.rutgers.edu (Sajee) writes:
|> Path: mrnews.mro.dec.com!pa.dec.com!decuac.dec.com!haven.umd.edu!news.umbc.edu!europa.eng.gtefsd.com!howland.reston.ans.net!cs.utexas.edu!rutgers!dziuxsolim.rutgers.edu!igor.rutgers.edu!remus.rutgers.edu!mathew
|> From: mathew@remus.rutgers.edu (Sajee)
|> Newsgroups: comp.unix.osf.osf1
|> Subject: path for shared objects
|> Message-ID: <Jul.14.15.55.35.1994.10161@remus.rutgers.edu>
|> Date: 14 Jul 94 19:55:35 GMT
|> Organization: Rutgers Univ., New Brunswick, N.J.
|> Lines: 10
|>
|>
|> How do I set up a link such that at link time I specify the full pathanme of a shared object (eg. /home/scm/lib/libscm.so) and at run time the loader will look for the object in the directory I specified; but if the object isn't in the directory I specified the loader should use LD_LIBRARY_PATH. How can this be done?
|>
|> I thought -rpath option was the answer but I can't get it to work correctly.
|>
|> HEEELLLP!!
|>
|> please mail all responses to scm@chesapeake.com
|>
|> Thanks
|>
Try this
cc -o prog -Wl,-rpath,/dir_path prog.c
^
|____ No space between , and -.
See man on cc for Wl (el).
Dan..
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-07-15 19:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-14 19:55 path for shared objects Sajee
1994-07-15 19:24 ` Daniel K. Edwin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox