From: edwin@dedwin.mro4.dec.com (Daniel K. Edwin)
Subject: Re: path for shared objects
Date: 15 Jul 1994 19:24:08 GMT [thread overview]
Message-ID: <306noo$34e@mrnews.mro.dec.com> (raw)
In-Reply-To: Jul.14.15.55.35.1994.10161@remus.rutgers.edu
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..
prev parent reply other threads:[~1994-07-15 19:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-14 19:55 path for shared objects Sajee
1994-07-15 19:24 ` Daniel K. Edwin [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