Re: How to create a .dylib
Re: How to create a .dylib
- Subject: Re: How to create a .dylib
- From: Michael B Allen <email@hidden>
- Date: Sat, 26 Mar 2005 00:20:55 -0500
On Mon, 21 Mar 2005 23:04:23 +0100
Markus Weissmann <email@hidden> wrote:
> you mean something like
> $ gcc somestuff.c -dynamiclib -o mylib.0.0.1.dylib -current_version
> 0.0.1 -install_name /usr/local/mylib.dylib
> ?
What if you're just linking? Is the following correct?
gcc -dynamiclib -current_version 0.8.1 \
-install_name /usr/local/libfoo.0.8.21.dylib \
src/f1.pic.o src/f2.pic.o -o libfoo.0.8.21.dylib
?
Also I see using libtool -dynamic directly is not suitable just as
using ld on Linux is not to be used directly. Is this true of creating
archives as well? I read that the preferred method to create and archive
was libtool -static [1].
Thanks,
Mike
[1] Mach-O Runtime Architecture : Building Mach-O Files : Static Archive
Libraries
http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/MachORuntime.pdf
--
IRC - where men are men, women are men, and the boys are FBI agents.
_______________________________________________
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