see build.log
Created attachment 258981 [details] build.log
Created attachment 262075 [details] iscsitarget-1.4.20.2-r1.ebuild
Created attachment 262077 [details, diff] iscsitarget-1.4.20.2-respect-flags.patch
Original patch by me, thanks for review & fixes to xarthisius.
+ 16 Feb 2011; Markos Chandras <hwoarang@gentoo.org> + iscsitarget-1.4.20.2.ebuild, +files/iscsitarget-1.4.20.2-respect-flags.patch: + Respect LDFLAGS. Thanks to Stefan Behte and Kacper Kowalik for the patch. Bug + #350742. Stable on amd64 wrt bug #349436 +
Should be upstream now: http://old.nabble.com/Fwd%3A--patch--respect-LDFLAGS---fix-CFLAGS-td30896348.html