@@ -13,7 +13,6 @@ class OpenSSLConan(ConanFile):
13
13
"toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols"
14
14
# https://github.com/openssl/openssl/blob/OpenSSL_1_0_2l/INSTALL
15
15
options = {"no_threads" : [True , False ],
16
- "no_electric_fence" : [True , False ],
17
16
"no_zlib" : [True , False ],
18
17
"zlib_dynamic" : [True , False ],
19
18
"shared" : [True , False ],
@@ -56,22 +55,13 @@ def source(self):
56
55
os .unlink ("openssl.tar.gz" )
57
56
58
57
def config_options (self ):
59
- if not self .options .no_electric_fence and self .settings .os == "Linux" :
60
- self .options ["electric-fence" ].shared = self .options .shared
61
58
if not self .options .no_zlib :
62
59
self .options ["zlib" ].shared = self .options .zlib_dynamic
63
60
64
61
def configure (self ):
65
62
del self .settings .compiler .libcxx
66
63
67
64
def requirements (self ):
68
- if not self .options .no_electric_fence and self .settings .os == "Linux" :
69
- private = False if self .options .shared else True
70
- self .requires .add ("electric-fence/2.2.0@lasote/stable" , private = private )
71
- else :
72
- if "electric-fence" in self .requires :
73
- del self .requires ["electric-fence" ]
74
-
75
65
if not self .options .no_zlib :
76
66
self .requires .add ("zlib/1.2.11@conan/stable" , private = False )
77
67
else :
@@ -101,15 +91,9 @@ def build(self):
101
91
lib_path = self .deps_cpp_info ["zlib" ].lib_paths [0 ] # Just path, linux will find the right file
102
92
config_options_string += ' --with-zlib-include="%s"' % include_path
103
93
config_options_string += ' --with-zlib-lib="%s"' % lib_path
104
- # EFENCE LINK
105
- if "electric-fence" in self .requires :
106
- libs = " " .join (["-l%s" % lib for lib in self .deps_cpp_info ["electric-fence" ].libs ])
107
- config_options_string += ' -L"%s" -I"%s" %s' % (self .deps_cpp_info ["electric-fence" ].lib_paths [0 ],
108
- self .deps_cpp_info ["electric-fence" ].include_paths [0 ],
109
- libs )
110
- else :
111
- tools .replace_in_file ("./openssl-%s/Configure" % self .version , "::-lefence::" , "::" )
112
- tools .replace_in_file ("./openssl-%s/Configure" % self .version , "::-lefence " , "::" )
94
+
95
+ tools .replace_in_file ("./openssl-%s/Configure" % self .version , "::-lefence::" , "::" )
96
+ tools .replace_in_file ("./openssl-%s/Configure" % self .version , "::-lefence " , "::" )
113
97
self .output .warn ("=====> Options: %s" % config_options_string )
114
98
115
99
for option_name in self .options .values .fields :
@@ -140,7 +124,8 @@ def run_in_src(self, command, show_output=False):
140
124
def linux_build (self , config_options_string ):
141
125
m32_suff = " -m32" if self .settings .arch == "x86" else ""
142
126
if self .settings .build_type == "Debug" :
143
- config_options_string = "-d " + config_options_string
127
+ config_options_string = "-d no-asm -g3 -O0 -fno-omit-frame-pointer " \
128
+ "-fno-inline-functions" + config_options_string
144
129
145
130
m32_pref = "setarch i386" if self .settings .arch == "x86" else ""
146
131
config_line = "%s ./config -fPIC %s %s" % (m32_pref , config_options_string , m32_suff )
0 commit comments