Skip to content

Commit 4a48401

Browse files
authored
Remove -lcrypto -lssl -lz (#409)
1 parent 768ae5e commit 4a48401

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup_posix.py

+6
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ def get_config():
9090
extra_objects.append(os.path.join(library_dirs[0], 'lib%s.a' % client))
9191
if client in libraries:
9292
libraries.remove(client)
93+
else:
94+
# mysql_config may have "-lmysqlclient -lz -lssl -lcrypto", but zlib and
95+
# ssl is not used by _mysql. They are needed only for static build.
96+
for L in ('crypto', 'ssl', 'z'):
97+
if L in libraries:
98+
libraries.remove(L)
9399

94100
name = "mysqlclient"
95101
metadata['name'] = name

0 commit comments

Comments
 (0)