Browse Source

Merge pull request #5551 from eska014/bsd-no-libdl

Link libdl only on Linux, fix BSD build
Rémi Verschelde 9 years ago
parent
commit
176920278f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      platform/x11/detect.py

+ 3 - 1
platform/x11/detect.py

@@ -182,7 +182,9 @@ def configure(env):
 			print("PulseAudio development libraries not found, disabling driver")
 			print("PulseAudio development libraries not found, disabling driver")
 
 
 	env.Append(CPPFLAGS=['-DX11_ENABLED','-DUNIX_ENABLED','-DGLES2_ENABLED','-DGLES_OVER_GL'])
 	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'])
 	#env.Append(CPPFLAGS=['-DMPC_FIXED_POINT'])
 
 
 #host compiler is default..
 #host compiler is default..