[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #38190] base fails to detect whether objc really works with clang/l
From: |
Sebastian Reitenbach |
Subject: |
[bug #38190] base fails to detect whether objc really works with clang/libobjc2 |
Date: |
Tue, 29 Jan 2013 10:19:13 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110613 SUSE/3.6.18-0.2.1 Firefox/3.6.18 |
URL:
<http://savannah.gnu.org/bugs/?38190>
Summary: base fails to detect whether objc really works with
clang/libobjc2
Project: GNUstep
Submitted by: buzzdee
Submitted on: Di 29 Jan 2013 10:19:12 GMT
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I'm on OpenBSD 5.2 -current, using libobjc2 from svn, and clang 3.2
When the configure script comes to the stage that it is testing whether objc
really works, it miserably fails.
I found it working with the last release.
Copying the config/objc-common.g file from the release to the SVN, makes the
gnustep-base SVN configure pass that test successfully.
$ diff -u gnustep-base-1.24.0/gnustep-base-1.24.0/config/objc-common.g
gnustep-base-1.25.0/gnustep-base-1.25.0/config/objc-common.g
--- gnustep-base-1.24.0/gnustep-base-1.24.0/config/objc-common.g Wed
Aug 17 13:46:06 2011
+++ gnustep-base-1.25.0/gnustep-base-1.25.0/config/objc-common.g Mon
Jan 28 18:51:42 2013
@@ -16,10 +16,17 @@
#include <objc/hooks.h>
#endif
+
+#if HAVE_OBJC_ROOT_CLASS_ATTRIBUTE
+#define GS_OBJC_ROOT_CLASS __attribute__((objc_root_class))
+#else
+#define GS_OBJC_ROOT_CLASS
+#endif
+
/* Provide an implementation of NXConstantString for an old libobjc when
built stand-alone without an NXConstantString implementation. */
#if !defined(NeXT_RUNTIME) && !defined(__GNUSTEP_RUNTIME__)
-@implementation NXConstantString
+GS_OBJC_ROOT_CLASS @implementation NXConstantString
- (const char*) cString
{
return 0;
@@ -34,7 +41,7 @@
/* Provide dummy implementations for NSObject and NSConstantString
* for libobjc2 which needs them.
*/
-@interface NSObject
+GS_OBJC_ROOT_CLASS @interface NSObject
{
id isa;
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38190>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #38190] base fails to detect whether objc really works with clang/libobjc2,
Sebastian Reitenbach <=