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




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.



g++ -O3 -w -fomit-frame-pointer --no-rtti --no-exceptions -pipe - fno-implicit-templates -I. -I/tmp/SingSing/include -DNDEBUG - DOM_NDEBUG -DppcMac_darwin -DHAVE_CONFIG_H -fpic -DPIC - Dp_Procs_FieldZp -c p_Procs_Lib.cc -o p_Procs_Lib_FieldZp.dl_o


libtool -dynamiclib -single_module -twolevel_namespace - weak_reference_mismatches weak-undefined dynamic_lookup -o p_Procs_FieldZp.so p_Procs_Lib_FieldZp.dl_o

libtool: unknown option character `d' in: -dynamiclib

libtool -dynamic. Don't you love that g++ -dynamiclib calls libtool - dynamic which, in turn, calls ld -dylib. Makes things so easy to remember :/


Peter
_______________________________________________
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>)



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.