X32 Patches
Here are patches from Yocto to compile packages for x32. You need to extract the changes when compiling for a different distribution:
libatomic-ops: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e3a384578f677c05d812d99c2c92aa13670bd06a
libaio: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f5c071d93c9e6f57930bce56b1e4f009c160a826
xproto: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a3cd4f5ee490d50d0e1c28cdb2c23ef95361b1d
liboil: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f3c0a02b920efa5747474b4c65aba12a928e56de
libxt: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b60d604f233565edc47b9d132ce7141a4eeb17f9
glib-2.0: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=89664754fb073f9be2ee2cfdaa0dbbe002ae561f
Mesa: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a41df69a11a27ab67c0c6df08546f66ec3d83da6
openssl: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=51bfed2e26fc13a66e8b5710aa2ce1d7a04af721
libevent: http://dev.gentoo.org/~vapier/x32/libevent-2.0.16-sysctl.patch
nfs-utils: http://dev.gentoo.org/~vapier/x32/nfs-utils-1.2.4-no-nfsctl.patch
procps: http://dev.gentoo.org/~vapier/x32/procps-3.2.8-time_t.patch
strace: use the 4.7 release with http://sources.gentoo.org/dev-util/strace/files/strace-4.7-x32.patch
python-3.2: http://sources.gentoo.org/dev-lang/python/files/python-3.2.3-x32.patch
cvs-1.12.12: http://sources.gentoo.org/dev-vcs/cvs/files/cvs-1.12.12-mktime-x32.patch
libjpeg-turbo: http://sources.gentoo.org/media-libs/libjpeg-turbo/libjpeg-turbo-1.2.0-x32.patch
ucl: http://source.gentoo.org/dev-libs/ucl/files/ucl-1.03-x32.patch