Current-Users archive

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

Re: __weak definition and problems with Obj-C



Hi Christos,


the patch you suggest fixes my problem.


Thank you,

Riccardo

On 04/14/15 20:50, Christos Zoulas wrote:
Can you try changing <sys/cdefs_elf.h> like that:

--- cdefs_elf.h.orig	2015-04-14 14:48:37.000000000 -0400
+++ cdefs_elf.h	2015-04-14 14:49:04.000000000 -0400
@@ -64,11 +64,13 @@
  #define	__weak_extern(sym)						\
      __asm(".weak " _C_LABEL_STRING(#sym));
+#ifndef __OBJC__
  #if __GNUC_PREREQ__(4, 0)
  #define	__weak	__attribute__((__weak__))
  #else
  #define	__weak
  #endif
+#endif



Home | Main Index | Thread Index | Old Index