summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <ehorowitz@shopwiki.com>2009-03-31 22:05:53 -0400
committerEliot Horowitz <ehorowitz@shopwiki.com>2009-03-31 22:05:53 -0400
commitc3ba79f829b29c254e29b55c05d83b767f24868d (patch)
treeea9f32092bb008f0fd59f196ad3b7a1ef5f6bff0
parent57ce5cf1ef7309dd801896b2e1ef4d60a547f8c1 (diff)
downloadmongo-c3ba79f829b29c254e29b55c05d83b767f24868d.tar.gz
option for only ading a library if its static
-rw-r--r--SConstruct8
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index fd5123edc75..dc449f2aed3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -400,7 +400,7 @@ def doConfigure( myenv , needJava=True , needPcre=True , shell=False ):
print( "can't find stdc++ library which is needed" );
Exit(1)
- def myCheckLib( poss , failIfNotFound=False , java=False ):
+ def myCheckLib( poss , failIfNotFound=False , java=False , staticOnly=False):
if type( poss ) != types.ListType :
poss = [poss]
@@ -426,8 +426,8 @@ def doConfigure( myenv , needJava=True , needPcre=True , shell=False ):
extra += " 32 bit version for shell"
print( "ERROR: can't find static version of: " + str( poss ) + extra + " in: " + str( allPlaces ) )
Exit(1)
-
- res = conf.CheckLib( poss )
+
+ res = not staticOnly and conf.CheckLib( poss )
if res:
return True
@@ -465,7 +465,7 @@ def doConfigure( myenv , needJava=True , needPcre=True , shell=False ):
myCheckLib( "pcrecpp" , True )
myCheckLib( "pcre" , True )
- myenv["_HAVEPCAP"] = myCheckLib( "pcap" )
+ myenv["_HAVEPCAP"] = myCheckLib( "pcap", staticOnly=release )
if shell:
haveReadLine = False