From ca51ab16c9c42565da6d4f7d18d1f06d7663df18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sat, 29 May 2021 23:18:43 +0200 Subject: [PATCH] XMake: Add dl and pthread links (fixes Linux compilation) --- xmake.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xmake.lua b/xmake.lua index 3b6719101..1993e6209 100644 --- a/xmake.lua +++ b/xmake.lua @@ -3,7 +3,13 @@ local modules = { Deps = {"NazaraCore"}, Packages = {"dr_wav", "libsndfile", "minimp3"} }, - Core = {}, + Core = { + Custom = function () + if is_plat("linux") then + add_syslinks("dl", "pthread") + end + end + }, Graphics = { Deps = {"NazaraRenderer"} },