-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhost-toolchain.patch
80 lines (74 loc) · 3.27 KB
/
host-toolchain.patch
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index cba57b4..d6c76a0 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -180,15 +180,15 @@ my %targets = (
"gcc" => {
inherit_from => [ "BASE_unix" ],
CC => "gcc",
- CFLAGS => picker(debug => "-O0 -g",
- release => "-O3"),
+ CFLAGS => picker(debug => "",
+ release => ""),
thread_scheme => "(unknown)",
bn_ops => "BN_LLONG",
},
"cc" => {
inherit_from => [ "BASE_unix" ],
CC => "cc",
- CFLAGS => "-O",
+ CFLAGS => "",
thread_scheme => "(unknown)",
},
@@ -677,12 +677,12 @@ my %targets = (
inherit_from => [ "BASE_unix" ],
CC => "gcc",
CXX => "g++",
- CFLAGS => picker(default => "-Wall",
- debug => "-O0 -g",
- release => "-O3"),
- CXXFLAGS => picker(default => "-Wall",
- debug => "-O0 -g",
- release => "-O3"),
+ CFLAGS => picker(default => "",
+ debug => "",
+ release => ""),
+ CXXFLAGS => picker(default => "",
+ debug => "",
+ release => ""),
cflags => threads("-pthread"),
cxxflags => combine("-std=c++11", threads("-pthread")),
lib_cppflags => "-DOPENSSL_USE_NODELETE",
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 09303c4..beaaecb 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -363,15 +363,13 @@ ECHO = echo
# ASFLAGS for this reason.
CROSS_COMPILE={- $config{CROSS_COMPILE} -}
-CC=$(CROSS_COMPILE){- $config{CC} -}
-CXX={- $config{CXX} ? "\$(CROSS_COMPILE)$config{CXX}" : '' -}
-CPPFLAGS={- our $cppflags1 = join(" ",
+CPPFLAGS+={- our $cppflags1 = join(" ",
(map { "-D".$_} @{$config{CPPDEFINES}}),
(map { "-I".$_} @{$config{CPPINCLUDES}}),
@{$config{CPPFLAGS}}) -}
-CFLAGS={- join(' ', @{$config{CFLAGS}}) -}
-CXXFLAGS={- join(' ', @{$config{CXXFLAGS}}) -}
-LDFLAGS= {- join(' ', @{$config{LDFLAGS}}) -}
+CFLAGS+={- join(' ', @{$config{CFLAGS}}) -}
+CXXFLAGS+={- join(' ', @{$config{CXXFLAGS}}) -}
+LDFLAGS+= {- join(' ', @{$config{LDFLAGS}}) -}
EX_LIBS= {- join(' ', @{$config{LDLIBS}}) -}
OBJCOPY={- $config{OBJCOPY} -}
@@ -379,11 +377,9 @@ MAKEDEPEND={- $config{makedepcmd} -}
PERL={- $config{PERL} -}
-AR=$(CROSS_COMPILE){- $config{AR} -}
ARFLAGS= {- join(' ', @{$config{ARFLAGS}}) -}
-RANLIB={- $config{RANLIB} ? "\$(CROSS_COMPILE)$config{RANLIB}" : "true"; -}
-RC= $(CROSS_COMPILE){- $config{RC} -}
-RCFLAGS={- join(' ', @{$config{RCFLAGS}}) -} {- $target{shared_rcflag} -}
+RANLIB=$(AR) s
+RCFLAGS+={- join(' ', @{$config{RCFLAGS}}) -} {- $target{shared_rcflag} -}
RM= rm -f
RMDIR= rmdir