/[escript]/trunk/bruce/src/Bruce/SConscript
ViewVC logotype

Contents of /trunk/bruce/src/Bruce/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


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

1 Import('*')
2
3 import os
4
5 cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -fpic -w1'
6
7 cpp_path = ['#../bruce/inc', '#../escript/inc',
8 '#../esysUtils/inc',
9 '/raid2/tools/python-2.3.4/include/python2.3',
10 '/raid2/tools/boost/include/boost-1_31']
11
12 lib = 'brucecpp'
13 sources = ['Bruce.cpp',
14 'BruceFactory.cpp',
15 'brucecpp.cpp']
16
17 bruce_env = Environment(ENV = os.environ)
18
19 bruce_env.Replace(CXX = 'icc')
20 bruce_env.Replace(SHOBJSUFFIX = '.lo')
21 bruce_env.Replace(CXXFLAGS = cxx_flags)
22 bruce_env.Replace(CPPPATH = cpp_path)
23
24 bruce_lib = bruce_env.SharedLibrary(lib, sources)
25 bruce_env.Install(libdir, bruce_lib)

  ViewVC Help
Powered by ViewVC 1.1.26