Tell GCC to stop exporting static library functions

Should fix crashes where games using Dear ImGui link to ours.
pull/131/head
jackun 4 years ago
parent 6576a0a09c
commit 2383ba26fc
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -37,7 +37,8 @@
extern "C" {
#endif
#define __PUBLIC __attribute__ ((visibility ("default")))
//#define __PUBLIC __attribute__ ((visibility ("default")))
#define __PUBLIC
#if UINTPTR_MAX == 0xffffffffffffffff
# define __elf64

@ -129,7 +129,7 @@ vklayer_mesa_overlay = shared_library(
dep_pthread,
dep_vulkan],
include_directories : [inc_common],
link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),
link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro', '-Wl,--exclude-libs,ALL']),
install_dir : libdir_mangohud,
install : true
)

Loading…
Cancel
Save