Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4a48401

Browse filesBrowse files
authored
Remove -lcrypto -lssl -lz (PyMySQL#409)
1 parent 768ae5e commit 4a48401
Copy full SHA for 4a48401

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎setup_posix.py

Copy file name to clipboardExpand all lines: setup_posix.py
+6Lines changed: 6 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.