--- /usr/portage/games-board/xskat/xskat-4.0.ebuild 2009-01-28 19:06:41.000000000 -0500 +++ /usr/portage/games-board/xskat/xskat-4.0.ebuild 2010-09-04 19:17:38.000000000 -0400 @@ -20,9 +20,13 @@ x11-misc/imake x11-proto/xproto" -src_compile() { +src_configure() { xmkmf -a || die "xmkmf failed" - emake CDEBUGFLAGS="${CFLAGS}" || die "emake failed" + sed -i Makefile -e "s/CC = gcc/CC = $(tc-getCC)/" || die "sed failed" +} + +src_compile() { + emake CDEBUGFLAGS="${CFLAGS}" LDOPTIONS="${LDFLAGS}" || die "emake failed" } src_install() {