summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-21 19:05:53 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-22 01:30:01 +0100
commitb0efc17d3b898206c2e1c98ad4884e404808c854 (patch)
tree8fe3c7cc594db1ee2b07fb391002870440e65880 /misc
parentec0ededcdef7512517aa7aaa9bd49652cece4770 (diff)
downloadfork-godot-webrtc-native-b0efc17d3b898206c2e1c98ad4884e404808c854.tar.gz
fork-godot-webrtc-native-b0efc17d3b898206c2e1c98ad4884e404808c854.tar.bz2
fork-godot-webrtc-native-b0efc17d3b898206c2e1c98ad4884e404808c854.zip
[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.
Diffstat (limited to 'misc')
-rw-r--r--misc/dist/linux/symbols-extension.map6
-rw-r--r--misc/dist/linux/symbols-gdnative.map9
2 files changed, 15 insertions, 0 deletions
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:
+ *;
+};