/[escript]/trunk/scons/gcc_options.py
ViewVC logotype

Annotation of /trunk/scons/gcc_options.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 368 - (hide annotations)
Thu Dec 15 23:23:12 2005 UTC (14 years, 11 months ago) by gross
File MIME type: text/x-python
File size: 1011 byte(s)
and a bit more on version detection
1 jgs 245 # locations of include files for python and boost
2 gross 367 # find valid python version:
3     import sys,os
4     python_path="/usr/include/python%s.%s"%(sys.version_info[0],sys.version_info[1])
5 jgs 237 boost_path = '/usr/include'
6    
7 jgs 245 # locations of libraries for python and boost
8 jgs 237 python_lib_path = '/usr/lib'
9     boost_lib_path = '/usr/lib'
10    
11 jgs 245 # names of libraries for python and boost
12 gross 368 python_lib = "python%s.%s"%(sys.version_info[0],sys.version_info[1])
13 jgs 245 boost_lib = 'boost_python'
14 jgs 237
15 jgs 245 # names of c and c++ compilers to use
16 jgs 237 cc = 'gcc'
17     cxx = 'g++'
18    
19 jgs 245 # c flags to use
20 jgs 249 cc_flags = '-O3 -std=c99 -fpic --no-warn -W -Wno-unknown-pragmas'
21     cc_flags_debug = '-g -O0 -std=c99 -fpic --no-warn -W -Wno-unknown-pragmas'
22 jgs 237
23 jgs 245 # c++ flags to use
24 jgs 249 cxx_flags = '-O3 -ansi -fpic --no-warn -W -Wno-unknown-pragmas'
25     cxx_flags_debug = '-g -O0 -ansi -fpic --no-warn -W -Wno-unknown-pragmas -DDOASSERT -DDOPROF'
26 jgs 237
27 jgs 245 # static library archiver flags to use
28 jgs 237 ar_flags = 'crus'
29 jgs 252
30     # system specific libraries to link with
31     sys_libs = []
32 jgs 255
33     # solver libraries to link with
34     solver_libs = []

  ViewVC Help
Powered by ViewVC 1.1.26