/[escript]/trunk/tools/CppUnitTest/src/SConscript
ViewVC logotype

Contents of /trunk/tools/CppUnitTest/src/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 188 - (show annotations)
Mon Nov 21 01:20:26 2005 UTC (15 years ago) by jgs
File size: 598 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 = ['#../CppUnitTest/inc']
8
9 lib = 'CppUnitTest'
10 sources = ['TestCase.cpp',
11 'TestFailure.cpp',
12 'TestRunner.cpp',
13 'TestSuite.cpp',
14 'TestResult.cpp',
15 'TextTestResult.cpp']
16
17 cppunit_env = Environment(ENV = os.environ)
18
19 cppunit_env.Replace(CXX = 'icc')
20 cppunit_env.Replace(CXXFLAGS = cxx_flags)
21 cppunit_env.Replace(CPPPATH = cpp_path)
22
23 cppunit_lib = cppunit_env.StaticLibrary(lib, sources)
24 cppunit_env.Install(libdir, cppunit_lib)

  ViewVC Help
Powered by ViewVC 1.1.26