Re: NKEs and Static Libs
Re: NKEs and Static Libs
- Subject: Re: NKEs and Static Libs
- From: Michael Cashwell <email@hidden>
- Date: Fri, 20 Sep 2002 17:50:15 -0400
On Friday, September 20, 2002, at 04:27 PM, Brian Wotring wrote:
>
I think I recall a similar problem with my NKE, I just made sure I had
>
used the -mlong-branch, and -static flags when compiling the library.
OK this is now even more interesting...
Despite the LIBRARY_STYLE = STATIC setting, following Brian's lead I
added the -mlong-branch and -static flags. This caused the library link
to fail. I then started whittling down the library until it was 2
"return 0;" functions. Then everything compiled and linked including
the NKE. So Brian's right here, -static must be explicitly stated.
Without it the NKE refuses to link with the library regardless of
what's in it.
So that's some progress at least.
I then added back the barest minimum of C++ code to the library: 2
simple super/sub classes with a virtual method and destructor. When I
then attempt to compile the static library I get this:
CompileCplusplus
/Users/cashwell/Documents/dev/Drop5/odShimMac4/netShim/../bin/_tmp/
00netShim.build/netShimLib.build/Objects-normal/ppc/init.o
{standard input}:1169:FATAL:incompatible feature used: directive
.non_lazy_symbol_pointer (must specify "-dynamic" to be used)
Can C++ not be used in such a -static lib? Anybody know what a
"non_lazy_symbol_pointer" is?
And Brian, when you did this did your library use any C++?
Thanks all,
Mike
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.