build-pkg: use config.guess to get native target

This commit is contained in:
Boris Nagaev 2015-10-19 10:01:52 +02:00 committed by Tony Theodore
parent 987f8a09de
commit 4ed7cd1b1e
1 changed files with 2 additions and 1 deletions

View File

@ -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