Browse Source

fix elfutils (#5335)

ruki 11 tháng trước cách đây
mục cha
commit
c30732f17f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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