The package net-misc/asterisk-1.0.3 dosn't use the CFLAGS set in make.conf, as indicated by the following output: # emerge --info | grep CFLAGS CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" # emerge asterisk Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/asterisk-1.0.3 to / ... * Building Asterisk... ./mkdep -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISK_VERSION=\"1.0.3\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN `ls *.c` ... I think this applies to all versions of Asterisk >= 1.0.0.
Created attachment 48249 [details, diff] asterisk-1.0.3.ebuild.patch
Created attachment 48252 [details, diff] asterisk-1.0.3.ebuild.patch Furthermore, make sure we use the mcpu/march from CFLAGS (make.conf) and not the march autodetected in the Makefile.
work in progress... will put that into -r1
chrb fixed that in 1.0.5