From 75e6e930695f9114fb513759c3762bcf6ed405ae Mon Sep 17 00:00:00 2001 From: dijunkun Date: Tue, 17 Oct 2023 14:52:54 +0800 Subject: [PATCH] Fix MacOSx compile warning by using linker flag '-ld_classic' --- xmake.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmake.lua b/xmake.lua index 08a1bcd..5cfd9ea 100644 --- a/xmake.lua +++ b/xmake.lua @@ -34,6 +34,8 @@ if is_os("windows") then elseif is_os("linux") then set_config("cflags", "-fPIC") add_syslinks("pthread") +elseif is_os("macosx") then + add_ldflags("-ld_classic", {force = true}) end add_packages("spdlog")