From: mathew@remus.rutgers.edu (Sajee)
Subject: specifying paths to shared objects
Date: 26 Jul 1994 14:54:20 -0400 [thread overview]
Message-ID: <313m4s$aot@remus.rutgers.edu> (raw)
Hello,
I want to know how I can tell ld the path to a shared object when it is creating an executable. I dont want to use LD_LIBRARY_PATH. I need a method whereby I can specify the paths to certain shared objects at link time. These shared objs will not found in the default directories.
I've tried -rpath but it doesn't seem to work. From what the man page says it seems like you are to specify directory(s) as arguments to rpath but when i do that i get this error:
Object file format error in:/home/scm/lib: bad file magic number
If I specify the full path to the shared object in -rpath I get no errors but the loader cannot find the shared object.
Please send all responses to scm@chesapeake.com
thanks,
Sajee
next reply other threads:[~1994-07-26 18:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-26 18:54 Sajee [this message]
1994-07-28 14:04 ` specifying paths to shared objects Frank Wortner
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