When I emerge mod_php-4.3.3-r3, I see massive amounts of warnings like this: /bin/sh /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/standard/ -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/standard/ -DPHP_ATOM_INC -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/include -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/main -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3 -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/Zend -I/usr/include/libxml2 -I/usr/include/imap -I/usr/include/pspell -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/xml/expat -I/var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/TSRM -march=i586 -2 -O3 -pipe -mmmx -m3dnow -fomit-frame-pointer -prefer-pic -c /var/tmp/portage/mod_php-4.3.3-r3/work/php-4.3.3/ext/standard/fsock.c -o ext/standard/fsock.lo gcc: unrecognized option `-2' gcc: unrecognized option `-2' I have the following lines in my make.conf: CFLAGS="-march=k6-2 -O3 -pipe -mmmx -m3dnow -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" So it seems like the -march=k6-2 is handled badly. The -2 remains, while the k6-part is transformed to i586 Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: I would have my actual CFLAGS expected to be used.
fixed in CVS. PHP has weird compile failures with K6* chips. see the other bugs on it. If you really don't like that fact, open up php.eclass and remove lines 396-398 that do 'replace-flags ...', but don't come back crying when it fails to compile.