mklib: clean up abi flags for x86 targets
authorMike Frysinger <vapier@gentoo.org>
Tue, 11 Sep 2012 05:57:25 +0000 (01:57 -0400)
committerMatt Turner <mattst88@gmail.com>
Fri, 14 Sep 2012 22:27:16 +0000 (15:27 -0700)
commit8f9bae615db5c058e3b6ce7f3f8e2262d59640bf
treea4ea6ba9808632e175d323f5b27b04badff303aa
parent88b0790b1ae8864d4ec6196b3939498bbffdbb5f
mklib: clean up abi flags for x86 targets

The current code is duplicated in two places and relies on `uname` to
detect the flags.  This is no good for cross-compiling, and the current
logic uses -m64 for the x32 ABI which breaks things.

Unify the code in one place, avoid `uname` completely, and add support
for the new x32 ABI.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
bin/mklib