Description: relax SCons linux2 resolving Some architectures use a platform-string like linux2-hppa, so fails to resolve as a linux2 architecture. Fixed by cutting at 6th character. Author: Jonas Smedegaard Last-Update: 2011-03-17 --- a/Sconstruct +++ b/Sconstruct @@ -47,7 +47,7 @@ env = Environment( options = opts ) - if sys.platform == "linux2" or sys.platform == "darwin": + if sys.platform[:6] == "linux2" or sys.platform == "darwin": if str(env['debug']) == "1": cppflags += ['-Wall', '-g2', '-ggdb', '-O0'] for flag in env["optflags"].split(" "): @@ -91,7 +91,7 @@ includes.append( '/opt/local/include' ) includes.append( '/usr/local/include/jack' ) - elif sys.platform == 'linux2': + elif sys.platform[:6] == 'linux2': ldflags.append('-lpthread') ldflags.append('-lasound') # ldflags.append('-lrubberband')