Jelajahi Sumber

improve detection of linux, fixes #3201

Juan Linietsky 9 tahun lalu
induk
melakukan
78b5404434
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      platform/x11/detect.py

+ 1 - 1
platform/x11/detect.py

@@ -148,7 +148,7 @@ def configure(env):
 
 
 	
 	
 	env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
 	env.Append(CPPFLAGS=['-DOPENGL_ENABLED','-DGLEW_ENABLED'])
-	if platform.platform() == 'Linux':
+	if platform.platform().find('Linux')>=0:
 		env.Append(CPPFLAGS=["-DALSA_ENABLED"])
 		env.Append(CPPFLAGS=["-DALSA_ENABLED"])
 		env.Append(LIBS=['asound'])
 		env.Append(LIBS=['asound'])