diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-12-21 19:05:53 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2023-12-22 01:30:01 +0100 |
commit | b0efc17d3b898206c2e1c98ad4884e404808c854 (patch) | |
tree | 8fe3c7cc594db1ee2b07fb391002870440e65880 /tools/rtc.py | |
parent | ec0ededcdef7512517aa7aaa9bd49652cece4770 (diff) | |
download | fork-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 'tools/rtc.py')
-rw-r--r-- | tools/rtc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/rtc.py b/tools/rtc.py index 6882bb4..b4d9173 100644 --- a/tools/rtc.py +++ b/tools/rtc.py @@ -37,6 +37,8 @@ def build_library(env, ssl): # Configure env. if env["platform"] == "windows": env.PrependUnique(LIBS=["iphlpapi", "bcrypt"]) + if env["platform"] == "linux": + env.PrependUnique(LIBS=["pthread"]) env.Prepend(LIBS=list(filter(lambda f: str(f).endswith(lib_ext), rtc))) env.Append(CPPPATH=["#thirdparty/libdatachannel/include"]) |