/[escript]/trunk/esysUtils/src/SConscript
ViewVC logotype

Annotation of /trunk/esysUtils/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 188 - (hide annotations)
Mon Nov 21 01:20:26 2005 UTC (13 years, 10 months ago) by jgs
File size: 588 byte(s)
explicitly add -fpic option to all compiler options lists
to ensure relocatable code is generated

1 jgs 180 Import('*')
2    
3     import os
4    
5 jgs 188 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
6 jgs 180
7     cpp_path = ['#../esysUtils/inc',
8     '/raid2/tools/python-2.3.4/include/python2.3',
9     '/raid2/tools/boost/include/boost-1_31']
10    
11     lib = 'esysUtils'
12     sources = ['EsysException.cpp',
13     'esysExceptionTranslator.cpp']
14    
15     utils_env = Environment(ENV = os.environ)
16    
17     utils_env.Replace(CXX = 'icc')
18     utils_env.Replace(CXXFLAGS = cxx_flags)
19     utils_env.Replace(CPPPATH = cpp_path)
20    
21     utils_lib = utils_env.StaticLibrary(lib, sources)
22     utils_env.Install(libdir, utils_lib)

  ViewVC Help
Powered by ViewVC 1.1.26