File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1648,8 +1648,18 @@ riLibs = []
1648
1648
1649
1649
if doConfigure :
1650
1650
1651
- c = Configure ( riEnv )
1652
-
1651
+ # Since we only build shared libraries and not exectuables,
1652
+ # we only need to check that shared libs will link correctly.
1653
+ # This is necessary for 3delight 12.0.20 and newer, which use
1654
+ # a run-time compatible, but link-time incompatbile libstdc++
1655
+ # in some obscure studio setups. This approach succeeds because
1656
+ # building a shared library doesn't require resolving the
1657
+ # unresolved symbols of the libraries that it links to.
1658
+ riCheckEnv = riEnv .Clone ()
1659
+ riCheckEnv .Append ( CXXFLAGS = [ "-fPIC" ] )
1660
+ riCheckEnv .Append ( LINKFLAGS = [ "-shared" ] )
1661
+ c = Configure ( riCheckEnv )
1662
+
1653
1663
haveDelight = c .CheckLibWithHeader ( "3delight" , "ri.h" , "CXX" )
1654
1664
havePRMan = c .CheckLibWithHeader ( "prman" , "ri.h" , "CXX" )
1655
1665
You can’t perform that action at this time.
0 commit comments