--- a/cdrtools-2.01.01_alpha57-r1.ebuild 2009-06-11 01:05:36.000000000 -0500 +++ a/cdrtools-2.01.01_alpha57-r1.ebuild 2009-09-26 16:57:54.000000000 -0500 @@ -62,6 +62,12 @@ # lame symlinks that all point to the same thing cd "${S}"/RULES + local tcCC=$(tc-getCC) + local tcCXX=$(tc-getCXX) + sed -i -e "/cc-config.sh/s/\$(C_ARCH:%64=%) \$(CCOM_DEF)/${tcCC} ${tcCC}/" rules1.top || die "sed fix rules1 CC failed" + sed -e "/^\(CC\|DYNLD\|LDCC\|MKDEP\)/s/gcc/${tcCC}/" \ + -e "/^\(CC++\|DYNLDC++\|LDCC++\|MKC++DEP\)/s/g++/${tcCXX}/" \ + -i cc-gcc.rul || die "sed fix cc-gcc CC failed" local t for t in ppc64 sh4 s390x ; do ln -s i586-linux-cc.rul ${t}-linux-cc.rul || die