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:26:27 +0000 (15:26 -0700)
commitfafaf56479d41e87bb0003a55d30dca1825bc1ca
tree03b52412a28020ce542af6d1bca08f02d1fb9634
parentf94b6d706ff4340277b9c68d2bc51602792c5739
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