From 76d26044f66b93210f95c59d54266e4fd449e5e2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 21 Oct 2014 21:51:15 -0700 Subject: [PATCH] Fix build. --- extensions/mysql/AMBuilder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extensions/mysql/AMBuilder b/extensions/mysql/AMBuilder index 06221293..0551ef97 100644 --- a/extensions/mysql/AMBuilder +++ b/extensions/mysql/AMBuilder @@ -18,8 +18,9 @@ if SM.mysql_root: '-lz', '-lpthread', '-lm', - '-lrt' ] + if builder.target_platform == 'linux': + binary.compiler.postlink += ['-lrt'] elif builder.target_platform == 'windows': binary.compiler.postlink += [ os.path.join(SM.mysql_root, 'lib', 'opt', 'mysqlclient.lib'),