Building dev-libs/nss-3.11.9 on solaris-sparc fails, because gcc is called with arguments that only Sun's cc understands. Reproducible: Always Steps to Reproduce: 1. emerge =dev-libs/nss-3.11.9 Actual Results: sparc-sun-solaris2.10-gcc -xO4 -KPIC -xarch=v8 Expected Results: sparc-sun-solaris2.10-gcc -O2 -mcpu=v8 The problem is due to SunOS5.mk not setting NS_USE_GCC. Patch coming up.
Created attachment 153521 [details, diff] nss-solaris-use-gcc.patch Patch to make dev-libs/nss compile on solaris
the nss build system does some more hideous things which I'd like to fix at the same time.
I checked in a slightly modified version of your patch, thanks!