The vendor-supplied Makefile uses the -falign-functions flag which does not exist in gcc 2.95.3. Changing the src_unpack in the ebuild as below works for me under the gentoo 1.2 profile on an Asus A7N8X board. This fix should only be used when using gcc 2.x. Is there a good way to detect this in an ebuild? src_unpack() { unpack ${A} cp nforce/nvnet/Makefile{,.old} sed -e "s/-falign-functions/-malign-functions/" nforce/nvnet/Makefile.old > nforce/nvnet/Makefile }
yes, there is -- there's an eclass (gcc.eclass I think?)
Created attachment 7975 [details] nforce-net-1.0.0248-r2.ebuild Updated nforce-net ebuild that fixes the compile error if (and only if) gcc 2 is used.
Created attachment 7976 [details] nforce-net-1.0.0248-r2.ebuild Updated nforce-net ebuild that fixes the compile error if (and only if) gcc 2 is used.
Ebuild added to repository with a few minor tweaks.