ruki il y a 4 ans
Parent
commit
84ae20c6e5
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      packages/l/luajit/port/xmake.lua
  2. 1 1
      packages/m/moonjit/port/xmake.lua

+ 1 - 1
packages/l/luajit/port/xmake.lua

@@ -177,7 +177,7 @@ target("luajit")
     if is_mode("debug") then
         add_defines("LUA_USE_ASSERT")
     end
-    if is_kind("shared") then
+    if is_kind("shared") and is_plat("windows") then
         add_defines("LUA_BUILD_AS_DLL")
     end
     add_defines("LUAJIT_ENABLE_LUA52COMPAT", {public = true})

+ 1 - 1
packages/m/moonjit/port/xmake.lua

@@ -177,7 +177,7 @@ target("luajit")
     if is_mode("debug") then
         add_defines("LUA_USE_ASSERT")
     end
-    if is_kind("shared") then
+    if is_kind("shared") and is_plat("windows") then
         add_defines("LUA_BUILD_AS_DLL")
     end
     add_defines("LUAJIT_ENABLE_LUA52COMPAT", {public = true})