Module: Mesa
Branch: master
Commit: a68ba5e0f099e54cf16b6e33a0fc0a8db7455eed
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a68ba5e0f099e54cf16b6e33a0fc0a8db7455eed

Author: José Fonseca <jose.r.fons...@gmail.com>
Date:   Mon Aug 29 13:28:41 2011 +0100

libgl-gdi: Fix mingw-w64 build.

Mingw-w64 actually seems to be closer to MSVC in terms of .DEF parsing.

---

 src/gallium/targets/libgl-gdi/SConscript |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/targets/libgl-gdi/SConscript 
b/src/gallium/targets/libgl-gdi/SConscript
index 49462a8..f6c8e8d 100644
--- a/src/gallium/targets/libgl-gdi/SConscript
+++ b/src/gallium/targets/libgl-gdi/SConscript
@@ -27,7 +27,9 @@ if env['llvm']:
     env.Append(CPPDEFINES = 'HAVE_LLVMPIPE')
     drivers += [llvmpipe]
 
-if env['gcc']:
+if env['gcc'] and 'w64' not in env['CC'].split('-'):
+    # DEF parser in certain versions of MinGW is busted, as does not behave as
+    # MSVC.  mingw-w64 works fine.
     sources += ['#src/gallium/state_trackers/wgl/opengl32.mingw.def']
 else:
     sources += ['#src/gallium/state_trackers/wgl/opengl32.def']

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to