From feefe1dce66ea47e4a968887fbcb81cb0f9caf33 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 4 Sep 2021 23:16:14 +0800 Subject: improve mergelib --- xmake/modules/utils/archive/merge_staticlib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/utils') diff --git a/xmake/modules/utils/archive/merge_staticlib.lua b/xmake/modules/utils/archive/merge_staticlib.lua index 8675f6c52..b5adbd98f 100644 --- a/xmake/modules/utils/archive/merge_staticlib.lua +++ b/xmake/modules/utils/archive/merge_staticlib.lua @@ -24,7 +24,7 @@ import("core.base.option") -- merge *.a archive libraries for ar function _merge_for_ar(target, program, outputfile, libraryfiles, opt) opt = opt or {} - if target:is_plat("macosx") then + if target:is_plat("macosx", "iphoneos", "watchos", "appletvos") then os.vrunv("libtool", table.join("-static", "-o", outputfile, libraryfiles)) else os.vrunv(program, table.join("crsT", outputfile, libraryfiles)) -- cgit v1.3.1