summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authoreska <eska@eska.me>2016-07-04 18:09:06 +0200
committereska <eska@eska.me>2016-07-04 18:39:27 +0200
commita2386bd2b2a3eed54e02d7609c3c99505ac293e0 (patch)
tree4fd7855d5b089e238887d6e2d208e70895c57cb7 /platform/x11
parent48959f0590665e9c958cafc7786a764365f4feb2 (diff)
Link libdl only on Linux, fix BSD build
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/detect.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 54940866b2..3c50e2cf5b 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -182,7 +182,9 @@ def configure(env):
print("PulseAudio development libraries not found, disabling driver")
env.Append(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES_OVER_GL'])
- env.Append(LIBS=['GL', 'GLU', 'pthread', 'z', 'dl'])
+ env.Append(LIBS=['GL', 'GLU', 'pthread', 'z'])
+ if (platform.system() == "Linux"):
+ env.Append(LIBS='dl')
#env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])
#host compiler is default..