From b0efc17d3b898206c2e1c98ad4884e404808c854 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Thu, 21 Dec 2023 19:05:53 +0100 Subject: [Linux] Only export extension init symbol Since we link with static libstdc++ we need to tell gcc to only export the necessary symbols. Using "-fvisibility=hidden" will not work, since libstdc++ explicitly exports its symbols. --- misc/dist/linux/symbols-extension.map | 6 ++++++ misc/dist/linux/symbols-gdnative.map | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 misc/dist/linux/symbols-extension.map create mode 100644 misc/dist/linux/symbols-gdnative.map (limited to 'misc/dist') diff --git a/misc/dist/linux/symbols-extension.map b/misc/dist/linux/symbols-extension.map new file mode 100644 index 0000000..5af224e --- /dev/null +++ b/misc/dist/linux/symbols-extension.map @@ -0,0 +1,6 @@ +{ + global: + webrtc_extension_init; + local: + *; +}; diff --git a/misc/dist/linux/symbols-gdnative.map b/misc/dist/linux/symbols-gdnative.map new file mode 100644 index 0000000..d048dc3 --- /dev/null +++ b/misc/dist/linux/symbols-gdnative.map @@ -0,0 +1,9 @@ +{ + global: + godot_gdnative_singleton; + godot_gdnative_init; + godot_gdnative_terminate; + godot_nativescript_init; + local: + *; +}; -- cgit v1.2.3