Re: linking shared libraries
Re: linking shared libraries
- Subject: Re: linking shared libraries
- From: Peter O'Gorman <email@hidden>
- Date: Tue, 09 Jun 2009 08:31:12 -0500
rohan a wrote:
> What option do I need to pass to ld so that it knows what is the link
> time path and the run time path?
>
> With Solaris, the -h option is passed to ld.
>
gcc -o libfoo.dylib -install_name
/path/to/where/the/lib/will/be/installed/libfoo.dylib -dynamiclib foo.o
See the man pages for gcc and ld for more info.
Peter
--
Peter O'Gorman
http://pogma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden