From 9da87f2ae7eb9acc8b9effa7df34dc163036c06f Mon Sep 17 00:00:00 2001 From: Qwinci <32550582+Qwinci@users.noreply.github.com> Date: Sat, 17 Feb 2024 00:03:22 +0200 Subject: [PATCH] rtdl: Fix debug mode build In some cases the rtdl can contain unwanted relocations to symbols from c++ stdlib when built in debug mode, this can be fixed by using `-fvisibility-inlines-hidden` in addition to `-fvisibility=hidden`. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 21af1e473c..7a6c6fd042 100644 --- a/meson.build +++ b/meson.build @@ -413,6 +413,7 @@ if not headers_only ld_cpp_args = [ '-fvisibility=hidden', + '-fvisibility-inlines-hidden', '-fno-stack-protector', '-DMLIBC_BUILDING_RTDL' ]