cleanup and work around visibility bug in gcc 3 that affects x86_64
[musl] / src / internal / libc.c
index 954efed..59d302d 100644 (file)
@@ -1,11 +1,11 @@
 #include "libc.h"
 
-#ifdef __PIC__
+#ifdef USE_LIBC_ACCESSOR
 struct __libc *__libc_loc()
 {
        static struct __libc __libc;
        return &__libc;
 }
 #else
-struct __libc __libc;
+struct __libc __libc ATTR_LIBC_VISIBILITY;
 #endif