Skip to content

Commit

Permalink
rtdl: Fix debug mode build
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Qwinci committed Feb 16, 2024
1 parent bfd94f8 commit 9da87f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ if not headers_only

ld_cpp_args = [
'-fvisibility=hidden',
'-fvisibility-inlines-hidden',
'-fno-stack-protector',
'-DMLIBC_BUILDING_RTDL'
]
Expand Down

0 comments on commit 9da87f2

Please sign in to comment.