summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-08-13 16:32:51 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-13 16:32:51 +0100
commit7b39194e2dbad6191b86c232d305dd910000753c (patch)
tree803337c8efe497784b31add8411db2b314fcf4f9 /scons
parentbf57eda0ecf1996bc2d188ef0b51a8f3ec993412 (diff)
scons: Handle Circular dependencies in the libraries.
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index e9e799dc78d..bf6172b4d77 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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