during linking sash will give a non-fatal error if any arb LDFLAGS are set. |i686-pc-linux-gnu-gcc --disable-shared -static -s-Wl,-O1 -Wl,--as-needed -o |sash sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o cmd_gzip.o |cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o -lz -lreadline -lncurses |i686-pc-linux-gnu-gcc: unrecognized option '-s-Wl,-O1' LDFLAGS in this case were "-Wl,O1 -Wl,--as-needed", so a space is needed btwn that and -s. the simple fix is changing line 30 of sash-3.7.ebuild from -e "/^LDFLAGS /s:$:${LDFLAGS}:" to -e "/^LDFLAGS /s:$: ${LDFLAGS}:"
fixed in cvs, thanks