From 3ccaadbdd4758ad6094c58bed99c00c9900c8e6d Mon Sep 17 00:00:00 2001 From: Jusonex Date: Sat, 1 Jul 2017 16:00:40 +0200 Subject: [PATCH] Possible fix for dbConnect not working with 'mysql' on Linux --- Server/dbconmy/premake5.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Server/dbconmy/premake5.lua b/Server/dbconmy/premake5.lua index fc81256c5f..1c2053840f 100644 --- a/Server/dbconmy/premake5.lua +++ b/Server/dbconmy/premake5.lua @@ -38,7 +38,9 @@ project "Dbconmy" if GLIBC_COMPAT then filter { "system:linux" } - linkoptions "-l:libmysqlclient.a" + buildoptions { "-pthread" } + linkoptions { "-l:libmysqlclient.a", "-pthread" } + links { "z", "dl", "m" } else filter "system:linux" links { "mysqlclient" }