diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-18 15:40:19 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-10-25 01:23:28 (GMT) |
commit | 79717d12cc4212e3e1df5fb7d8513523c86f0ff4 (patch) | |
tree | c01392e5244cf2abe9f9189759b0ae8c4b345336 /tools | |
parent | f15fc358a6dd5a6bda812752b6f0c92175f901c3 (diff) | |
download | mxe-79717d12cc4212e3e1df5fb7d8513523c86f0ff4.zip mxe-79717d12cc4212e3e1df5fb7d8513523c86f0ff4.tar.gz mxe-79717d12cc4212e3e1df5fb7d8513523c86f0ff4.tar.bz2 |
build-pkg: fix test for library format
Fix warnings like:
[build-pkg] File usr/x86_64-unknown-linux-gnu/lib/libyasm.a
(x86_64-unknown-linux-gnu~yasm): not recognized library
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build-pkg.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index b9ed8df..1014fbb 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -154,6 +154,10 @@ local function fileExists(name) end end +local function isCross(target) + return not isInString('unknown', target) +end + -- return target and package from item name local function parseItem(item) return item:match("([^~]+)~([^~]+)") @@ -316,7 +320,8 @@ local function checkFile(file, item) log('File %s (%s): DLL in /lib/', file, item) end if file:match('%.dll$') or file:match('%.a$') then - if isInString(target, file) then -- cross-compiled + if isInString(target, file) and isCross(target) then + -- cross-compiled if not isValidBinary(target, file) then log('File %s (%s): not recognized library', file, item) |