mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Remove -lcrypto -lssl -lz (#409)
This commit is contained in:
@ -90,6 +90,12 @@ def get_config():
|
|||||||
extra_objects.append(os.path.join(library_dirs[0], 'lib%s.a' % client))
|
extra_objects.append(os.path.join(library_dirs[0], 'lib%s.a' % client))
|
||||||
if client in libraries:
|
if client in libraries:
|
||||||
libraries.remove(client)
|
libraries.remove(client)
|
||||||
|
else:
|
||||||
|
# mysql_config may have "-lmysqlclient -lz -lssl -lcrypto", but zlib and
|
||||||
|
# ssl is not used by _mysql. They are needed only for static build.
|
||||||
|
for L in ('crypto', 'ssl', 'z'):
|
||||||
|
if L in libraries:
|
||||||
|
libraries.remove(L)
|
||||||
|
|
||||||
name = "mysqlclient"
|
name = "mysqlclient"
|
||||||
metadata['name'] = name
|
metadata['name'] = name
|
||||||
|
Reference in New Issue
Block a user