See attached build log. (Please do not complain about the need for looking at the build log until you can provide an easy way to open bugs with the correct data picked out of a tinderbox log. Thanks.) [Uhm is it just me or fortify now replaces this?]
Created attachment 248172 [details] Build log
Created attachment 248247 [details, diff] fixed sed statement to correctly use LDFLAGS, also stopped the sed statement from mangling -O2 Cflag The LDFLAGS variable was misspelled. I fixed that, and changed the CFLAGS sed statement to not mangle -O2. This ebuild already inherits flag-o-matic eclass, which contains a filter-flags function if this program really needs a CFLAG removed.
+ 15 Mar 2013; Sergey Popov <pinkbyte@gentoo.org> +libsafe-2.0_p16-r3.ebuild: + Revision bump: EAPI 5, epatch_user, use readme.gentoo eclass, respect + LDFLAGS, wrt bug #338209