The -march=pentium3 is set by the patch. quoting from the patch: -CFLAGS = -O -Wall -fPIC $(INCLUDES) $(XINCLUDES) +CFLAGS = -march=pentium3 -O3 -pipe -fPIC $(INCLUDES) $(XINCLUDES)
mmm. It should use portage flags instead of hardwired flags, anyway.
I've fixed the ebuild to include portage cflags with this in src_unpack: src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/cnet-2.0.5-gentoo.patch sed -e "s/^CFLAGS.*/CFLAGS=${CFLAGS}/" ${S}/src/Makefile.linux > ${S}/src/Makefile.gentoo mv ${S}/src/Makefile.gentoo ${S}/src/Makefile.linux } but I don't like it - I should use dosed, but dosed uses ${D}.
Adding this in. Changed the sed line to: sed -i.orig -e "s/^CFLAGS.*/CFLAGS=${CFLAGS}/" ${S}/src/Makefile.linux so it just does the backup in place. Will commit shortly.
Changes committed into portage. No revision bump. Re-install cnet-2.0.5 to pick them up.