Check attached build log; since it calls ld directly rather than through the compiler, it should use raw-ldflags to translate user's LDFLAGS so that -Wl, is dropped and the options are split at commas. Thanks, Diego
Created attachment 168004 [details] Build log
I've removed iddev from portage, it's not needed anymore.