--- a/www-misc/fcgiwrap/fcgiwrap-1.0.2-r1.ebuild +++ a/www-misc/fcgiwrap/fcgiwrap-1.0.2-r1.ebuild @@ -31,6 +31,7 @@ RDEPEND="${DEPEND}" src_prepare() { sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \ + -e '/-o fcgiwrap -lfcgi/s/$/ @LDFLAGS@/' \ -i Makefile.in || die "sed failed" eautoreconf --- a/www-misc/fcgiwrap/fcgiwrap-9999.ebuild +++ a/www-misc/fcgiwrap/fcgiwrap-9999.ebuild @@ -31,6 +31,7 @@ RDEPEND="${DEPEND}" src_prepare() { sed -e '/man8dir = $(DESTDIR)/s/@prefix@//' \ + -e '/-o fcgiwrap -lfcgi/s/$/ @LDFLAGS@/' \ -i Makefile.in || die "sed failed" eautoreconf