summaryrefslogtreecommitdiff
blob: 94c1f829450aa19df94d16406d899c29f49e9475 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- a/SConstruct
+++ b/SConstruct
@@ -88,7 +88,7 @@ Commandline Options:
 build_target = 'all'
 
 # Optimization level
-opt_flags    = ' -g -O3 -DNDEBUG'
+opt_flags    = ' -DNDEBUG'
 
 # Architecture (defaults to build host type)
 compile_arch = ''
@@ -121,26 +121,6 @@ elif debug_lvl == 3:
 if dbug:
     opt_flags = opt_flags + ' -DGU_DBUG_ON'
 
-if sysname == 'sunos':
-    compile_arch = ' -mtune=native'
-elif x86:
-    if bits == 32:
-        if machine == 'x86_64':
-            compile_arch = ' -mx32'
-        else:
-            compile_arch = ' -m32 -march=i686'
-            if sysname == 'linux':
-                link_arch = ' -Wl,-melf_i386'
-    else:
-        compile_arch = ' -m64'
-        if sysname == 'linux':
-            link_arch = ' -Wl,-melf_x86_64'
-    link_arch = compile_arch + link_arch
-elif machine == 's390x':
-    compile_arch = ' -mzarch'
-    if bits == 32:
-        compile_arch += ' -m32'
-
 boost      = int(ARGUMENTS.get('boost', 1))
 boost_pool = int(ARGUMENTS.get('boost_pool', 0))
 system_asio= int(ARGUMENTS.get('system_asio', 1))