Apache2 fails at the configure stage because the linker provided by Apple doesn't seem to ignore unknown flags (--no-as-needed in this case). Reproducible: Always Steps to Reproduce: 1.emerge =apache-2.2.9-r1 Actual Results: ./configure fails Expected Results: Should not fail ###<snip>### i686-apple-darwin9-gcc: '-V' option must have argument configure:4369: $? = 1 configure:4392: checking for C compiler default output file name configure:4414: i686-apple-darwin9-gcc -O2 -pipe -fomit-frame-pointer -march=prescott -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -Wl,--no-as-needed -L/Users/zafi/Gentoo/usr/lib conftest.c >&5 ld: unknown option: --no-as-needed collect2: ld returned 1 exit status configure:4418: $? = 1 configure:4456: result: configure: failed program was: ###<snip>### After commenting out line 481 in the apache-2.eclass it works.
it's more the other way around: some <censored> inserted gnu specific linker flags unconditionally, which is guaranteed to break on a certain amount of platforms.
as-needed cruft made conditional, thanks