Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 259428 - apache-2.2.9-r1 fails at configure on OS X 10.5.6
Summary: apache-2.2.9-r1 fails at configure on OS X 10.5.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-17 23:03 UTC by nietonfir
Modified: 2009-03-01 10:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nietonfir 2009-02-17 23:03:58 UTC
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.
Comment 1 Fabian Groffen gentoo-dev 2009-02-18 08:20:40 UTC
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.
Comment 2 Fabian Groffen gentoo-dev 2009-03-01 10:23:02 UTC
as-needed cruft made conditional, thanks