1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

Fix server build on FreeBSD

(cherry picked from commit 8f9914bd94)
This commit is contained in:
Fabio Alessandrelli
2018-03-01 01:25:16 +01:00
committed by Hein-Pieter van Braam
parent 675899a521
commit 44b206a3fa
3 changed files with 15 additions and 2 deletions

View File

@@ -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']: