From 4ed7cd1b1e8d540f0096be47bdb773097619f5f6 Mon Sep 17 00:00:00 2001 From: Boris Nagaev Date: Mon, 19 Oct 2015 10:01:52 +0200 Subject: build-pkg: use config.guess to get native target --- tools/build-pkg.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index 2870cad..aa32ebc 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -158,8 +158,9 @@ local function fileExists(name) end end +local NATIVE_TARGET = trim(shell("ext/config.guess")) local function isCross(target) - return not isInString('unknown', target) + return target ~= NATIVE_TARGET end -- return target and package from item name -- cgit v0.12