From ac3e2f48d1f86de05cd5fce3a589439241631a96 Mon Sep 17 00:00:00 2001 From: Vincent Herbet Date: Sun, 26 Nov 2017 20:43:20 +0100 Subject: [PATCH] Fix mac build --- modules/mysqlx/AMBuilder | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/mysqlx/AMBuilder b/modules/mysqlx/AMBuilder index e6f6659b..801c5b09 100644 --- a/modules/mysqlx/AMBuilder +++ b/modules/mysqlx/AMBuilder @@ -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'),