view src/mingw-osmesa-1-fixes.patch @ 4015:f3d167e40f01

of-tisean: add new package * Makefile.in: add tisean package * build_packages.m: add tisean package to installer * dist-files.mk: update for of-tisean-1-fortran.patch, of-tisean.mk * src/of-tisean-1-fortran.patch: new file * src/of-tisean.mk: new file
author John Donoghue
date Tue, 25 Aug 2015 08:40:44 -0400
parents 4f586cfb8438
children 7d6f1fd0d672
line wrap: on
line source

diff -uNr a/scons/gallium.py b/scons/gallium.py
--- a/scons/gallium.py	2014-06-25 00:33:39.000000000 -0400
+++ b/scons/gallium.py	2015-02-15 12:07:49.271713764 -0500
@@ -529,10 +529,6 @@
         else:
             env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
         if env['platform'] == 'windows':
-            # Avoid depending on gcc runtime DLLs
-            linkflags += ['-static-libgcc']
-            if 'w64' in env['CC'].split('-'):
-                linkflags += ['-static-libstdc++']
             # Handle the @xx symbol munging of DLL exports
             shlinkflags += ['-Wl,--enable-stdcall-fixup']
             #shlinkflags += ['-Wl,--kill-at']
diff -ur Mesa-10.2.2.orig/scons/crossmingw.py Mesa-10.2.2/scons/crossmingw.py
--- Mesa-10.2.2.orig/scons/crossmingw.py       2015-06-12 06:33:42.524589500 -0400
+++ Mesa-10.2.2/scons/crossmingw.py    2015-06-12 22:12:26.181163800 -0400
@@ -160,7 +160,11 @@
     env.Append(SHLIBEMITTER = [shlib_emitter])
     env['LINK'] = mingw_prefix + 'g++'
     env['AR'] = mingw_prefix + 'ar'
+    if not SCons.Util.WhereIs(env['AR']):
+        env['AR'] = env['CC'] + '-ar'
     env['RANLIB'] = mingw_prefix + 'ranlib'
+    if not SCons.Util.WhereIs(env['RANLIB']):
+        env['RANLIB'] = env['CC'] + '-ranlib'
     env['LINK'] = mingw_prefix + 'g++'
     env['AS'] = mingw_prefix + 'as'
     env['WIN32DEFPREFIX']        = ''