summaryrefslogtreecommitdiff
path: root/tools/openssl.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2023-12-22 02:10:20 +0100
committerGitHub <noreply@github.com>2023-12-22 02:10:20 +0100
commit81239d820dc14a045f10353d2b1fbd935a5246d4 (patch)
tree8fe3c7cc594db1ee2b07fb391002870440e65880 /tools/openssl.py
parentec0ededcdef7512517aa7aaa9bd49652cece4770 (diff)
parentb0efc17d3b898206c2e1c98ad4884e404808c854 (diff)
downloadfork-godot-webrtc-native-81239d820dc14a045f10353d2b1fbd935a5246d4.tar.gz
fork-godot-webrtc-native-81239d820dc14a045f10353d2b1fbd935a5246d4.tar.bz2
fork-godot-webrtc-native-81239d820dc14a045f10353d2b1fbd935a5246d4.zip
Merge pull request #131 from Faless/fix/linux_only_export_init_symbol
[Linux] Only export extension init symbol
Diffstat (limited to 'tools/openssl.py')
-rw-r--r--tools/openssl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/openssl.py b/tools/openssl.py
index f42928f..7b18210 100644
--- a/tools/openssl.py
+++ b/tools/openssl.py
@@ -125,6 +125,8 @@ def build_openssl(env, jobs=None):
env.Prepend(LIBPATH=[env["SSL_BUILD"]])
if env["platform"] == "windows":
env.PrependUnique(LIBS=["crypt32", "ws2_32", "advapi32", "user32"])
+ if env["platform"] == "linux":
+ env.PrependUnique(LIBS=["pthread", "dl"])
env.Prepend(LIBS=env["SSL_LIBS"])
return [env["SSL_CRYPTO_LIBRARY"], env["SSL_LIBRARY"]]
@@ -169,6 +171,8 @@ def build_openssl(env, jobs=None):
env.Prepend(LIBPATH=[env["SSL_BUILD"]])
if env["platform"] == "windows":
env.PrependUnique(LIBS=["crypt32", "ws2_32", "advapi32", "user32"])
+ if env["platform"] == "linux":
+ env.PrependUnique(LIBS=["pthread", "dl"])
env.Prepend(LIBS=env["SSL_LIBS"])
return ssl