diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-19 08:01:52 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-25 01:23:28 (GMT) |
commit | 4ed7cd1b1e8d540f0096be47bdb773097619f5f6 (patch) | |
tree | f5435d51a9caed492f1c9156fe391d15c4debe19 | |
parent | 987f8a09de28009c89878d6e792c7e152a93977a (diff) | |
download | mxe-4ed7cd1b1e8d540f0096be47bdb773097619f5f6.zip mxe-4ed7cd1b1e8d540f0096be47bdb773097619f5f6.tar.gz mxe-4ed7cd1b1e8d540f0096be47bdb773097619f5f6.tar.bz2 |
build-pkg: use config.guess to get native target
-rwxr-xr-x | tools/build-pkg.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |