radeon: drop assert accessing cref which is meant to be hidden
[mesa.git] / 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