Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a .dylib



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >How to create a .dylib (From: Alessandro Perrone <email@hidden>)
 >Re: How to create a .dylib (From: Markus Weissmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.