mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-08-15 23:42:40 +00:00
Added option "default" for link_static. By default Windows builds are
linked statically, while Posix builds use MariaDB Connector/C shared library.
This commit is contained in:
@ -55,7 +55,7 @@ def get_config(options):
|
||||
cfg.includes = [".\\include", mariadb_dir + "\\include", mariadb_dir + "\\include\\mysql"]
|
||||
cfg.lib_dirs = [mariadb_dir + "\\lib"]
|
||||
cfg.libs = ["ws2_32", "advapi32", "kernel32", "shlwapi", "crypt32"]
|
||||
if static.lower() == "on":
|
||||
if static.lower() == "on" or static_lower == "default":
|
||||
cfg.libs.append("mariadbclient")
|
||||
else:
|
||||
cfg.libs.append("libmariadb")
|
||||
|
2
site.cfg
2
site.cfg
@ -1,7 +1,7 @@
|
||||
# configuration file for building MariaDB Connector/C Python
|
||||
[cc_options]
|
||||
# static or dynamic linking
|
||||
link_static=on
|
||||
link_static=default
|
||||
# Windows: location of MySQL Connector/C installation
|
||||
install_dir=c:\Program Files\MariaDB\MariaDB Connector C 64-bit
|
||||
# Posix: location of mariadb_config executable
|
||||
|
Reference in New Issue
Block a user