1 |
On Fri, 2004-06-18 at 13:09, Michael Schachtebeck wrote: |
2 |
> Hi, |
3 |
> |
4 |
> I tried to emerge apache-2.0.49-r3, but with LDFLAGS="-pie" in |
5 |
> /etc/make.conf, it doesn't work; it prints the error |
6 |
|
7 |
This is a known bug with apache2 and passing *any* LDFLAGS. |
8 |
|
9 |
It's because of packages like this one that make it clear why the |
10 |
hardened herd opts to use a gcc patch to get the desired result over |
11 |
hacking for each and every package that has a lousy Makefile. |
12 |
|
13 |
|
14 |
> Configuring Apache Portable Runtime library ... |
15 |
> |
16 |
> [...] |
17 |
> |
18 |
> checking for C compiler default output file name... configure: error: C |
19 |
> compiler cannot create executables |
20 |
> See `config.log' for more details. |
21 |
> configure failed for srclib/apr |
22 |
> |
23 |
> !!! ERROR: net-www/apache-2.0.49-r3 failed. |
24 |
> !!! Function src_compile, Line 190, Exitcode 1 |
25 |
|
26 |
|
27 |
|
28 |
> !!! bad ./configure please submit bug report to bugs.gentoo.org. Include |
29 |
> your config.layout. |
30 |
|
31 |
I guess you did not read the above. |
32 |
|
33 |
|
34 |
|
35 |
> If I disable LDFLAGS="-pie" in /etc/make.conf, everything works fine... |
36 |
> Any ideas how to compile apache-2.0.49-r3 with LDFLAGS="-pie"? |
37 |
|
38 |
yep... use a gcc that enables this support automaticly. The way we |
39 |
handle this now is to remove all LDFLAGS add 'hardened' to your USE |
40 |
flags and then emerge gcc. Your problem will go away after that. |
41 |
|
42 |
> |
43 |
> Michael. |
44 |
> |
45 |
> -- |
46 |
> gentoo-hardened@g.o mailing list |
47 |
-- |
48 |
Ned Ludd <solar@g.o> |
49 |
Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer |