Diff puff-20100127-r1 with a puff-20181104

/usr/portage/sci-electronics/puff/puff-20181104.ebuild 2023-10-09 14:52:35.044368490 +0300
21 21
	default
22 22
	# fix lib path for X11 and dont ignore LDFLAGS
23 23
	# respect CC and LD
24
	# additional drop explicite format option for linker (bug #831569)
24 25
	eapply -p0 "${FILESDIR}"/${P}-Makefile.patch
26
	# add missing LDPATH for libX11.so
27
	sed -i -e "s:-lX11:-L/usr/$(get_libdir) -lX11:g" Makefile || die
28
	# drop no longer needed and now unsupported paramter '-T' (bug #8802225)
29
	sed -i -e "s: -T : :g" Makefile || die
25 30
	eapply_user
26 31
}
27 32

  
28 33
src_compile() {
34
#	# fails to compile with -flto (bug #862516)
35
	filter-lto
29 36
	LDFLAGS="$(raw-ldflags)"
30 37
	emake -j1 CC="$(tc-getCC)" LD="$(tc-getLD)"
31 38
}
Thank you!