As reported on Freebsd [ http://www.freebsd.org/cgi/query-pr.cgi?pr=120052 ] and Debian [ http://bugs.debian.org/462794 ] bugzillas, libsdl will in some cases enter the signal handler with the direction flag set to backwards, which violates the SysV abi. This presumably is only a problem on systems running GCC 4.3.0, since all earlier version of GCC cleared the direction flag before entering the signal handler.
Steps to Reproduce:
Created attachment 149281 [details, diff]
Created attachment 149283 [details, diff]
patch for ebuild
ive added the fix from upstream svn, thanks for the report!