scons: Handle Circular dependencies in the libraries.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 13 Aug 2009 15:32:51 +0000 (16:32 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 13 Aug 2009 15:32:51 +0000 (16:32 +0100)
scons/gallium.py

index e9e799dc78d9930ca909571d8f78a0f18dd2d40a..bf6172b4d777d226a0c2f10385b79ea0fc531914 100644 (file)
@@ -462,6 +462,8 @@ def generate(env):
         shlinkflags += [
             '-Wl,-Bsymbolic',
         ]
+        # Handle circular dependencies in the libraries
+        env['_LIBFLAGS'] = '-Wl,--start-group ' + env['_LIBFLAGS'] + ' -Wl,--end-group'
     if platform == 'windows' and msvc:
         # See also:
         # - http://msdn2.microsoft.com/en-us/library/y0zzbyt4.aspx