Trying to build any recent ebuild of pwlib generates the following error message: cc -mcpu=k6 -march=k6 -O3 -pipe -Wall -DP_LINUX -mcpu=i586 -D_REENTRANT -DP_HAS_SEMAPHORES -fPIC -DP_SSL -I/usr/include/include -I/usr/include/crypto -DP_EXPAT -DP_PTHREADS -DPHAS_TEMPLATES -DPBYTE_ORDER=PLITTLE_ENDIAN -I/var/tmp/portage/pwlib-1.3.3/work/pwlib/include/ptlib/unix -I/var/tmp/portage/pwlib-1.3.3/work/pwlib/include -c ../common/getdate.tab.c -o /var/tmp/portage/pwlib-1.3.3/work/pwlib/lib/obj_linux_x86_r/getdate.tab.o cc1: -mcpu=i586 does not support -march=k6 make[2]: *** [/var/tmp/portage/pwlib-1.3.3/work/pwlib/lib/obj_linux_x86_r/getdate.tab.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/pwlib-1.3.3/work/pwlib/src/ptlib/unix' make[1]: *** [opt] Error 2 make[1]: Leaving directory `/var/tmp/portage/pwlib-1.3.3/work/pwlib' make: *** [optshared] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 4, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/dev-libs/pwlib/pwlib-1.3.3.ebuild . Last version I have been able to build sucessfully was 1.2.12-r3
Updated ebuild to include a patch which strips conflicting gcc optimizations that are already set via make.conf.