From 64d48bcdc13809fcf08f50632646ee63d8d71c5a Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sat, 11 Jun 2022 13:53:38 -0600 Subject: [PATCH] LibC: Force default visibility for the _ctype_ symbol When ports compile with -fvisibility=hidden, they can end up with unresolved references to _ctype_ without passing -Wl,--allow-shlib-undefined --- Userland/Libraries/LibC/ctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/ctype.h b/Userland/Libraries/LibC/ctype.h index b7493b8138..62bbbbb866 100644 --- a/Userland/Libraries/LibC/ctype.h +++ b/Userland/Libraries/LibC/ctype.h @@ -20,7 +20,7 @@ __BEGIN_DECLS #define _X 0100 #define _B 0200 -extern char const _ctype_[256]; +extern char const _ctype_[256] __attribute__((visibility("default"))); static inline int __inline_isalnum(int c) {