Zlib: Use the generated static library with MySQL module
This commit is contained in:
parent
9bbeb1f578
commit
85b7c26bb0
|
@ -19,17 +19,17 @@ if AMXX.mysql_path:
|
||||||
binary.compiler.defines += ['stricmp=strcasecmp']
|
binary.compiler.defines += ['stricmp=strcasecmp']
|
||||||
binary.compiler.linkflags += [
|
binary.compiler.linkflags += [
|
||||||
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
|
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
|
||||||
'-lz',
|
|
||||||
'-lpthread',
|
'-lpthread',
|
||||||
'-lm'
|
'-lm'
|
||||||
]
|
]
|
||||||
elif builder.target_platform is 'windows':
|
elif builder.target_platform is 'windows':
|
||||||
binary.compiler.linkflags += [
|
binary.compiler.linkflags += [
|
||||||
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'mysqlclient.lib'),
|
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'mysqlclient.lib'),
|
||||||
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'zlib.lib'),
|
|
||||||
'ws2_32.lib'
|
'ws2_32.lib'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
binary.compiler.linkflags += [AMXX.zlib.binary]
|
||||||
|
|
||||||
binary.sources = [
|
binary.sources = [
|
||||||
'basic_sql.cpp',
|
'basic_sql.cpp',
|
||||||
'handles.cpp',
|
'handles.cpp',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user