Get parity with makefile flags.

Former-commit-id: d1ee3b078001fc2bd5f0454cf457897cd0a0a817
This commit is contained in:
David Anderson
2014-02-08 14:49:03 -08:00
parent 0748a05bf0
commit 90b2860fd2
3 changed files with 38 additions and 5 deletions

View File

@ -16,14 +16,14 @@ if AMXX.mysql_path:
]
if builder.target_platform is 'linux' or builder.target_platform is 'mac':
binary.compiler.postlink += [
binary.compiler.linkflags += [
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
'-lz',
'-lpthread',
'-lm'
]
elif builder.target_platform is 'windows':
binary.compiler.postlink += [
binary.compiler.linkflags += [
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'mysqlclient.lib'),
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'zlib.lib'),
'wsock32.lib'