aboutsummaryrefslogtreecommitdiff
path: root/platform/server/detect.py
diff options
context:
space:
mode:
authorFabio Alessandrelli2018-03-01 01:25:16 +0100
committerHein-Pieter van Braam2018-03-01 21:12:28 +0100
commit44b206a3fa1c3b16041ee77ace409b20ac64664b (patch)
tree1e10e4d159593bb22c738fe93abab900e25ddaff /platform/server/detect.py
parent675899a521422a97835660b5a7b09dad851884d0 (diff)
downloadgodot-44b206a3fa1c3b16041ee77ace409b20ac64664b.tar.gz
godot-44b206a3fa1c3b16041ee77ace409b20ac64664b.tar.zst
godot-44b206a3fa1c3b16041ee77ace409b20ac64664b.zip
Fix server build on FreeBSD
(cherry picked from commit 8f9914bd94fced7f60dff40e14fe734203d7c5d4)
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 f550cca22..77193e592 100644
--- a/platform/server/detect.py
+++ b/platform/server/detect.py
@@ -1,4 +1,5 @@
import os
+import platform
import sys
@@ -135,7 +136,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']: