From 7e1b9cb00e02f3db2ee3d90d024ce6b4f8bf265f Mon Sep 17 00:00:00 2001 From: dijunkun Date: Sun, 16 Aug 2026 22:34:58 +0800 Subject: [PATCH] [fix] use -ld_classic only on macOS Intel --- submodules/minirtc | 2 +- xmake/platform.lua | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/submodules/minirtc b/submodules/minirtc index cb09142..6e656db 160000 --- a/submodules/minirtc +++ b/submodules/minirtc @@ -1 +1 @@ -Subproject commit cb0914210e0ab32eefb56ef5daa8fe4197c28166 +Subproject commit 6e656dbd8d1315fcad06ff5d3302764dcdba7351 diff --git a/xmake/platform.lua b/xmake/platform.lua index 040263e..46bba3c 100644 --- a/xmake/platform.lua +++ b/xmake/platform.lua @@ -80,6 +80,9 @@ function setup_platform_settings() add_cxflags("-Wno-unused-variable") elseif is_os("macosx") then + if is_arch("x86_64") then + add_ldflags("-Wl,-ld_classic") + end add_cxflags("-Wno-unused-variable") add_frameworks("Cocoa", "OpenGL", "IOSurface", "ScreenCaptureKit", "AVFoundation", "CoreMedia", "CoreVideo", "CoreAudio",