[Numpy-svn] r4504 - branches/numpy.scons/numpy/distutils/scons/core

numpy-svn@scip... numpy-svn@scip...
Sun Nov 25 11:34:51 CST 2007


Author: cdavid
Date: 2007-11-25 11:34:45 -0600 (Sun, 25 Nov 2007)
New Revision: 4504

Modified:
   branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
Log:
Add option to add linkflags at the end of the scons link command

Modified: branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py	2007-11-24 11:37:14 UTC (rev 4503)
+++ branches/numpy.scons/numpy/distutils/scons/core/numpyenv.py	2007-11-25 17:34:45 UTC (rev 4504)
@@ -286,6 +286,15 @@
     #     Misc
     #---------------
 
+    # We sometimes need to put link flags at the really end of the command line, so we add a construction variable for it
+    env['LINKFLAGSEND'] = []
+    env['SHLINKFLAGSEND'] = ['$LINKFLAGSEND']
+    env['LDMODULEFLAGSEND'] = []
+
+    env['LINKCOM'] = '%s $LINKFLAGSEND' % env['LINKCOM']
+    env['SHLINKCOM'] = '%s $SHLINKFLAGSEND' % env['SHLINKCOM']
+    env['LDMODULECOM'] = '%s $LDMODULEFLAGSEND' % env['LDMODULECOM']
+
     # Put config code and log in separate dir for each subpackage
     from utils import curry
     NumpyConfigure = curry(env.Configure, 



More information about the Numpy-svn mailing list