Add a CompileSharedObject builder for configure contexts.
authorcournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Sep 2008 08:32:01 +0000 (08:32 +0000)
committercournape <cournape@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 3 Sep 2008 08:32:01 +0000 (08:32 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@3334 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/SConf.py

index 75128166d7029a64dd587377a117f351623b1710..b964307143b2f534c2f960e882a21c779dc6f6a8 100644 (file)
@@ -827,6 +827,11 @@ class CheckContext:
         # TODO: should use self.vardict for $CC, $CPPFLAGS, etc.
         return not self.TryBuild(self.env.Object, text, ext)
 
+    def CompileSharedObject(self, text, ext):
+        self.sconf.cached = 1
+        # TODO: should use self.vardict for $SHCC, $CPPFLAGS, etc.
+        return not self.TryBuild(self.env.SharedObject, text, ext)
+
     def RunProg(self, text, ext):
         self.sconf.cached = 1
         # TODO: should use self.vardict for $CC, $CPPFLAGS, etc.