aboutsummaryrefslogtreecommitdiff
path: root/platform/server/detect.py
diff options
context:
space:
mode:
authorFabio Alessandrelli2018-03-01 01:25:16 +0100
committerFabio Alessandrelli2018-03-01 02:16:52 +0100
commit8f9914bd94fced7f60dff40e14fe734203d7c5d4 (patch)
treee9fa138cd9fa296147b7ea5a4b67274669ece51f /platform/server/detect.py
parent8df449100a3f9dde511d05087bef60a07fadefde (diff)
downloadgodot-8f9914bd94fced7f60dff40e14fe734203d7c5d4.tar.gz
godot-8f9914bd94fced7f60dff40e14fe734203d7c5d4.tar.zst
godot-8f9914bd94fced7f60dff40e14fe734203d7c5d4.zip
Diffstat (limited to 'platform/server/detect.py')
-rw-r--r--platform/server/detect.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/platform/server/detect.py b/platform/server/detect.py
index 43aad4ad2..c9a886ad6 100644
--- a/platform/server/detect.py
+++ b/platform/server/detect.py
@@ -1,4 +1,5 @@
import os
+import platform
import sys
@@ -132,7 +133,12 @@ def configure(env):
env.Append(CPPPATH=['#platform/server'])
env.Append(CPPFLAGS=['-DSERVER_ENABLED', '-DUNIX_ENABLED'])
env.Append(LIBS=['pthread'])
- env.Append(LIBS=['dl'])
+
+ if (platform.system() == "Linux"):
+ env.Append(LIBS=['dl'])
+
+ if (platform.system().find("BSD") >= 0):
+ env.Append(LIBS=['execinfo'])
# Link those statically for portability
if env['use_static_cpp']: