[Xorp-cvs] SF.net SVN: xorp:[11592] trunk/xorp/SConstruct

bms_fbsd at users.sourceforge.net bms_fbsd at users.sourceforge.net
Thu Nov 26 15:26:46 PST 2009


Revision: 11592
          http://xorp.svn.sourceforge.net/xorp/?rev=11592&view=rev
Author:   bms_fbsd
Date:     2009-11-26 23:26:46 +0000 (Thu, 26 Nov 2009)

Log Message:
-----------
Bite the bullet, and build with shared libraries by default.

This is a reasonable assumption, given that we now have regression
test support for a shared library build, and the tests pass.
The commercial product is also using shared libraries by default.

Not all of the tree will fully use shared libraries. BGP in particular
needs to be revisited, because of some inter-module coupling.

Static libraries will continue to be semi-supported for debugging purposes,
however, it's expected that they will *not* co-exist in the same build run.

Modified Paths:
--------------
    trunk/xorp/SConstruct

Modified: trunk/xorp/SConstruct
===================================================================
--- trunk/xorp/SConstruct	2009-11-26 23:25:22 UTC (rev 11591)
+++ trunk/xorp/SConstruct	2009-11-26 23:26:46 UTC (rev 11592)
@@ -17,14 +17,12 @@
 
 # $ID$
 
-# TODO build static and shared libraries. do so concisely and without bugs.
 # TODO tone down linker line spamming, -lpcre etc; stage use of LIBS please.
 # TODO cross compiles.
 # TODO Add separate toolchain test for C99 varargs macros.
 # TODO Add separate toolchain test for GNU varargs macros.
 # TODO Fix default include/lib paths, pass in from environment.
 # TODO Merge scons-unfamiliar syntactic sugar from YHC's sconsfiles.
-# TODO support static *and* shared library build in same tree/run
 # TODO conditionalize new directory layout here
 
 # The XRL tgt-gen and clnt-gen scripts use Python 2.3+'s optparse
@@ -57,7 +55,7 @@
 vars = Variables()
 
 vars.AddVariables(
-    BoolVariable('shared', 'build with shared libraries', False),
+    BoolVariable('shared', 'build with shared libraries', True),
     BoolVariable('strip',  'strip executables and libraries when installed', False),
     #BoolVariable('use_rtld_origin', 'Use ORIGIN in dynamically linked programs ', False),
     BoolVariable('ignore_check_errors', 'Ignore errors when building tests', False),


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Xorp-cvs mailing list