/[escript]/trunk/finley/src/CPPAdapter/SConscript
ViewVC logotype

Annotation of /trunk/finley/src/CPPAdapter/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

1 jgs 182 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 182
7     cpp_path = ['#../finley/inc',
8     '#../esysUtils/inc',
9     '#../escript/inc',
10     '#../paso/inc',
11     '/raid2/tools/python-2.3.4/include/python2.3',
12     '/raid2/tools/boost/include/boost-1_31']
13    
14     lib = 'finleycpp'
15     sources = ['FinleyError.cpp',
16     'MeshAdapter.cpp',
17     'MeshAdapterFactory.cpp',
18     'SystemMatrixAdapter.cpp',
19     'finleycpp.cpp']
20    
21     finleycpp_env = Environment(ENV = os.environ)
22    
23     finleycpp_env.Replace(CXX = 'icc')
24     finleycpp_env.Replace(SHOBJSUFFIX = '.lo')
25     finleycpp_env.Replace(CXXFLAGS = cxx_flags)
26     finleycpp_env.Replace(CPPPATH = cpp_path)
27    
28     finleycpp_lib = finleycpp_env.SharedLibrary(lib, sources)
29     finleycpp_env.Install(libdir, finleycpp_lib)

  ViewVC Help
Powered by ViewVC 1.1.26