Hi, When macports compiles and links an application are the shared library paths hard coded into the binary? I s this the typical behaviour on OS X? Best Regards, Simon.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 elabsjng@mac.com wrote: | Hi, | | When macports compiles and links an application are the shared library | paths hard coded into the binary? I s this the typical behaviour on OS X? ~From my understanding, this is typical behavior on just about any platform that has software compiled with shared library support. When a binary file is compiled, during the configuration step there is usually an option that determines the shard library path. If you wanted to change the location of shared libraries you'd have to re-run the configure script with the new library directory and then recompile the software. Matrix Mole -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHi2WgNtosHRPp48MRAmSpAKCBixIn2Ingwtdl6pUXq1PCk/wNWgCfTjqp u5V7n4lxQgBKerY5sXSdxTc= =y/xT -----END PGP SIGNATURE-----
Hi, Thanks for the reply. Maybe I misunderstand but I though, on Linux, the run-time linker had a set of search paths to look for shared libraries? Best Regards, Simon. On 14 Jan 2008, at 13:37, Matrix Mole wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
elabsjng@mac.com wrote: | Hi, | | When macports compiles and links an application are the shared library | paths hard coded into the binary? I s this the typical behaviour on OS X?
~From my understanding, this is typical behavior on just about any platform that has software compiled with shared library support. When a binary file is compiled, during the configuration step there is usually an option that determines the shard library path. If you wanted to change the location of shared libraries you'd have to re-run the configure script with the new library directory and then recompile the software.
Matrix Mole -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHi2WgNtosHRPp48MRAmSpAKCBixIn2Ingwtdl6pUXq1PCk/wNWgCfTjqp u5V7n4lxQgBKerY5sXSdxTc= =y/xT -----END PGP SIGNATURE----- _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 elabsjng@mac.com wrote: | Thanks for the reply. Maybe I misunderstand but I though, on Linux, the | run-time linker had a set of search paths to look for shared libraries? I might be wrong then. I always thought that there was some kind of lib directory option in the ./configure script that could be set, if not it'd default (usually to /usr/local or whatever had been coded by the programmer). For systems such as macports, they'd have set the library path to /opt/local/lib I believe. Unfortunately, my programming experience and knowledge is extremely limited, and I might be mistaking shared libraries with runtime dependent libraries. I'm hoping if I'm incorrect then someone can show me where, but this is how I've understood it for a while now. Matrix Mole -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHi22nNtosHRPp48MRAnkxAJ9A+MdS92gvFd4vuhJMiLTmnbZH4wCgiGmR lg7cYIstdtMUJSccULcPeMc= =cl52 -----END PGP SIGNATURE-----
On Jan 14, 2008, at 08:11, Matrix Mole wrote:
elabsjng@mac.com wrote:
| Thanks for the reply. Maybe I misunderstand but I though, on Linux, the | run-time linker had a set of search paths to look for shared libraries?
I might be wrong then. I always thought that there was some kind of lib directory option in the ./configure script that could be set, if not it'd default (usually to /usr/local or whatever had been coded by the programmer). For systems such as macports, they'd have set the library path to /opt/local/lib I believe. Unfortunately, my programming experience and knowledge is extremely limited, and I might be mistaking shared libraries with runtime dependent libraries. I'm hoping if I'm incorrect then someone can show me where, but this is how I've understood it for a while now.
I guess Simon is talking about ld.conf that exists on Linux, and for which there is no Mac OS X equivalent.
participants (3)
-
elabsjng@mac.com
-
Matrix Mole
-
Ryan Schmidt