X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=scons%2Fgallium.py;h=bba3f01791f3b47be8d981f1662896863881adf8;hb=355f507f2a7082f28d98cb29b2a34b77fb45e031;hp=dfed20f9e199faba2d53b8e4157bb8ad67fcb415;hpb=c57fb034b19156e06e2ec25d9b06a0e174d861c9;p=mesa.git diff --git a/scons/gallium.py b/scons/gallium.py index dfed20f9e19..bba3f01791f 100755 --- a/scons/gallium.py +++ b/scons/gallium.py @@ -251,7 +251,7 @@ def generate(env): '_SVID_SOURCE', '_BSD_SOURCE', '_GNU_SOURCE', - 'PTHREADS', + 'HAVE_PTHREAD', 'HAVE_POSIX_MEMALIGN', ] if env['platform'] == 'darwin': @@ -368,7 +368,7 @@ def generate(env): ccflags += ['-m64'] if platform == 'darwin': ccflags += ['-fno-common'] - if env['platform'] not in ('windows', 'haiku'): + if env['platform'] not in ('cygwin', 'haiku', 'windows'): ccflags += ['-fvisibility=hidden'] # See also: # - http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html @@ -498,7 +498,6 @@ def generate(env): # Default libs libs = [] - print env['platform'] if env['platform'] in ('darwin', 'freebsd', 'linux', 'posix', 'sunos'): libs += ['m', 'pthread', 'dl'] env.Append(LIBS = libs)