From 35edbe72894dc6d73a553f6296a05a50a5aaac77 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 1 Feb 2019 22:26:29 +0800 Subject: [PATCH] improve luajit --- packages/l/luajit/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/l/luajit/xmake.lua b/packages/l/luajit/xmake.lua index b558c06c3..9ff08fa10 100644 --- a/packages/l/luajit/xmake.lua +++ b/packages/l/luajit/xmake.lua @@ -16,6 +16,9 @@ package("luajit") on_load(function (package) package:addvar("includedirs", "include/luajit") + if is_plat("macosx") then + package:addvar("ldflags", "-all_load", "-pagezero_size 10000", "-image_base 100000000") + end end) on_install("windows", function (package)