Fix qjs symbols visibility ##build

This commit is contained in:
Adam Satko 2024-10-25 16:21:11 +00:00 committed by GitHub
parent 19cc4f821b
commit c3f95c2621
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ r_lang_sources += '../../shlr/qjs/src/libunicode.c'
r_lang = library('r_lang', r_lang_sources,
include_directories: [platform_inc, spp_inc, qjs_inc],
c_args: library_cflags,
c_args: library_cflags + '-fvisibility=hidden',
dependencies: [
r_util_dep,
r_io_dep,
@ -35,7 +35,7 @@ r_lang_dep = declare_dependency(link_with: r_lang, include_directories: [platfor
if get_option('blob')
r_lang_static = static_library('r_lang_static', r_lang_sources,
include_directories: [platform_inc, spp_inc, qjs_inc],
c_args: library_cflags,
c_args: library_cflags + '-fvisibility=hidden',
dependencies: [
r_util_static_dep,
r_asm_static_dep,

View File

@ -27,6 +27,7 @@ QJS_CFLAGS+=-D QJS_LIBC=$(QJS_LIBC)
QJS_CFLAGS+=-D QJS_NOABORT=1
QJS_CFLAGS+=-U DUMP_LEAKS
QJS_CFLAGS+=-U NDEBUG
QJS_CFLAGS+=-fvisibility=hidden
QJS_LIBS+=-lr_core -lr_config -lr_cons