瀏覽代碼

fix elfutils (#5335)

ruki 11 月之前
父節點
當前提交
c30732f17f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      packages/e/elfutils/xmake.lua

+ 2 - 1
packages/e/elfutils/xmake.lua

@@ -38,7 +38,8 @@ package("elfutils")
         on_check("android", function (package)
             local ndk = package:toolchain("ndk")
             local ndk_sdkver = ndk:config("ndk_sdkver")
-            assert(ndk and tonumber(ndk) < 26, "package(elfutils): need ndk version < 26 for android")
+            local ndkver = ndk:config("ndkver")
+            assert(ndkver and tonumber(ndkver) < 26, "package(elfutils): need ndk version < 26 for android")
             assert(ndk_sdkver and tonumber(ndk_sdkver) <= 23, "package(elfutils): need ndk api level <= 23 for android")
         end)
     end