1 |
Hi, |
2 |
|
3 |
after some investigation, this has nothing to do with '-g', but with |
4 |
'-O', or more precise, with missing '-O'. |
5 |
|
6 |
One thing is that the ebuild removes the openssl-default CFLAG '-O3' |
7 |
with some sed-magic. |
8 |
|
9 |
Now when the user did not tweak CFLAGS/CXXFLAGS yet, thus having them |
10 |
empty, we end up building shared-lib (uses -fPIC) without any |
11 |
optimization flag. |
12 |
Unfortunately, this is the only situation where it doesn't work [1]. |
13 |
[1] http://gcc.gnu.org/ml/gcc-help/2007-04/msg00200.html |
14 |
|
15 |
Attached patch adds '-O1' if we have '-O0' or no '-O' at all. |
16 |
Should we keep '-O3' in this case ? |
17 |
But when user wants '-g', '-O3' might be ways less useful than '-O1'. |
18 |
|
19 |
With this patch, openssl-0.9.8e can be unmasked for x86-linux. |
20 |
|
21 |
/haubi/ |
22 |
|
23 |
On Thu, 2007-04-12 at 15:58 +0200, Michael Haubenwallner wrote: |
24 |
> Hi, |
25 |
> |
26 |
> I've hit this compile error on x86-linux with dev-libs/openssl-0.9.8e: |
27 |
> http://www.mail-archive.com/openssl-dev@×××××××.org/msg22324.html |
28 |
> |
29 |
> dev-libs/openssl-0.9.8d works. |
30 |
> |
31 |
> /haubi/ |
32 |
> |
33 |
|
34 |
-- |
35 |
Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz |
36 |
Sitz der Gesellschaft: Friesach bei Graz |
37 |
UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K |
38 |
Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz |