Fix mac build

This commit is contained in:
Vincent Herbet 2017-11-26 20:43:20 +01:00 committed by GitHub
parent 6d8975f9fc
commit ac3e2f48d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,8 +23,11 @@ if AMXX.mysql_path:
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
'-lpthread',
'-lm',
'-lrt',
]
if builder.target_platform is 'linux':
binary.compiler.linkflags += [
'-lrt'
]
elif builder.target_platform is 'windows':
binary.compiler.linkflags += [
os.path.join(AMXX.mysql_path, 'lib', 'mysqlclient.lib'),