summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Crosta <dcrosta@late.am>2011-12-28 12:01:48 -0500
committerDan Crosta <dcrosta@late.am>2011-12-28 12:01:48 -0500
commit4f3b34405e00b0aac04b240a0aad9b22d27d7dc3 (patch)
tree2ebc29c472e985ac4df2aab4a4b0a1f0a4ff61a7
parentddabd8c4b3f941a51305677e599c355aea610a52 (diff)
downloadmongo-4f3b34405e00b0aac04b240a0aad9b22d27d7dc3.tar.gz
add --cc option to SConstruct for solaris build
-rw-r--r--SConstruct5
1 files changed, 5 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct
index 41383b159e1..3a30cd9352f 100644
--- a/SConstruct
+++ b/SConstruct
@@ -114,6 +114,7 @@ add_option( "64" , "whether to force 64 bit" , 0 , True , "force64" )
add_option( "32" , "whether to force 32 bit" , 0 , True , "force32" )
add_option( "cxx", "compiler to use" , 1 , True )
+add_option( "cc", "compiler to use for c" , 1 , True )
add_option( "cpppath", "Include path if you have headers in a nonstandard directory" , 1 , True )
add_option( "libpath", "Library path if you have libraries in a nonstandard directory" , 1 , True )
@@ -211,6 +212,10 @@ env = Environment( MSVS_ARCH=msarch , tools = ["default", "gch"], toolpath = '.'
if has_option( "cxx" ):
env["CC"] = get_option( "cxx" )
env["CXX"] = get_option( "cxx" )
+
+if has_option( "cc" ):
+ env["CC"] = get_option( "cc" )
+
env["LIBPATH"] = []
if has_option( "libpath" ):