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
39
40
41
42
43
44
45
46
47
|
--- a/configure
+++ b/configure
@@ -149,7 +149,7 @@ createVariables()
configuration="Release_gcc_unicode"
ext=u
debug_flag=""
- optimization=" -O3 -DREGEXP_UNICODE "
+ optimization=" -DREGEXP_UNICODE ${CFLAGS} "
# In release builds, unless otherwise instructed, tell wx to disable asserts
asserts="-DNDEBUG"
if [ "$asserts_specified" = "on" ]; then
@@ -353,7 +353,7 @@ createCodeLiteCppcheckMakefile ()
else
configuration="Release"
debug_flag=""
- optimization=" -O2 "
+ optimization="${CFLAGS}"
# In release builds, unless otherwise instructed, tell wx to disable asserts
asserts="-DNDEBUG"
if [ "$asserts_specified" = "on" ]; then
@@ -448,7 +448,7 @@ createCodeLiteClangMakefile()
else
configuration="Release"
debug_flag=""
- optimization=" -O2 "
+ optimization="${CFLAGS}"
# In release builds, unless otherwise instructed, tell wx to disable asserts
asserts="-DNDEBUG"
if [ "$asserts_specified" = "on" ]; then
@@ -559,7 +559,7 @@ createCodeLiteGCCMakefile ()
else
configuration="Release"
debug_flag=""
- optimization=" -O2 "
+ optimization="${CFLAGS}"
# In release builds, unless otherwise instructed, tell wx to disable asserts
asserts="-DNDEBUG"
if [ "$asserts_specified" = "on" ]; then
@@ -672,7 +672,7 @@ createCodeLiteIndexerMakefile ()
else
configuration="Release"
debug_flag=""
- optimization=" -O2 "
+ optimization="${CFLAGS}"
# In release builds, unless otherwise instructed, tell wx to disable asserts
asserts="-DNDEBUG"
if [ "$asserts_specified" = "on" ]; then
|