gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] libobjc2 pthread and NSBlock


From: David Chisnall
Subject: Re: [PATCH] libobjc2 pthread and NSBlock
Date: Wed, 30 Dec 2009 15:30:33 +0000

The changes to the makefile look correct. The changes to NSBlocks.m are not. Adding the category on NSBlock is now no use, because the class is renamed _NSBlock. It is created dynamically and so it can not be augmented by a category. For EtoileFoundation's Smalltalk compatibility layer we need to use the new runtime functions to add the methods to _NSBlock.

Adding an interface for NSBlock will make it compile but won't make it work.

David

On 30 Dec 2009, at 15:22, Quentin Mathé wrote:

Hi,

Here is a patch to support compiling GNUstep Base and the Etoile trunk repository against libobjc2 on Ubuntu Linux.

Without it, GNUstep Base configure fails to compile a basic test objc program with GCC because of undefined pthread references. On the Étoilé side, LanguageKit compilation fails because of an undefined NSBlock reference in EtoileFoundation: libobjc2/NSBlock.m declares @interface NSBlock (but no @implementation NSBlock unlike ObjectiveC2/NSBlocks.m) while EtoileFoundation defines a category NSBlock(SmalltalkCompatibility).

Cheers,
Quentin.


<libobjc2-pthread- block.patch>_______________________________________________
Gnustep-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnustep-dev


-- Sent from my STANTEC-ZEBRA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]