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: -multi_module problem



Justin C. Walker wrote:

On Aug 27, 2006, at 21:04 , Peter O'Gorman wrote:


On Aug 28, 2006, at 12:41 PM, Justin C. Walker wrote:

I'm flummoxed: Singular uses 'libtool'; should I rename this to glibtool? I get this as a result of the "-dynamic" -> "-dynamiclib" changes:

Ah, I must've read the link line wrong first time, sorry. It wants to use Apple's libtool to create shared libraries. It it were up to me, I'd change it to use g++ as the linker instead, however, you can use libtool to do it, but it means you may have to manually add stuff like -lSystem -lSystemStubs and -lstdc++ etc etc.

That will be a bridge I'll be happy to cross :-}

Are you even sure that what you need to build here is a dynamic library? Or perhaps a loadable module? "Other systems" are no help here, because they don't make this distinction. I am asking, because you seem to want to build a dynamic library here, but you give it the extension .so, and you don't give it an install_name, so chances are that if this thing is needed at runtime, it will not be found.


IMHO you would really be better off by disabling this dynamic-kernel stuff. It's not needed, and the static build works fine.

--
Martin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden
References: 
 >-multi_module problem (From: "Justin C. Walker" <email@hidden>)
 >Re: -multi_module problem (From: Eric Albert <email@hidden>)
 >Re: -multi_module problem (From: "Justin C. Walker" <email@hidden>)
 >Re: -multi_module problem (From: Eric Albert <email@hidden>)
 >Re: -multi_module problem (From: "Justin C. Walker" <email@hidden>)
 >Re: -multi_module problem (From: Eric Albert <email@hidden>)
 >Re: -multi_module problem (From: "Peter O'Gorman" <email@hidden>)
 >Re: -multi_module problem (From: Eric Albert <email@hidden>)
 >Re: -multi_module problem (From: "Justin C. Walker" <email@hidden>)
 >Re: -multi_module problem (From: "Peter O'Gorman" <email@hidden>)
 >Re: -multi_module problem (From: "Justin C. Walker" <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.