LyX-1.3.5 broken if compiled with -fstack-protection-all flag also, current ebuild filters only -fstack-protection flag.
Created attachment 58859 [details, diff] lyx-1.3.5.ebuild.patch
Thanks for the bug report. Fixed in lyx-1.3.5-r1 and lyx-1.3.5-r2.