1 |
Applied, thanks! |
2 |
|
3 |
On 26-04-2007 09:47:28 +0200, Michael Haubenwallner wrote: |
4 |
> Hi, |
5 |
> |
6 |
> after some investigation, this has nothing to do with '-g', but with |
7 |
> '-O', or more precise, with missing '-O'. |
8 |
> |
9 |
> One thing is that the ebuild removes the openssl-default CFLAG '-O3' |
10 |
> with some sed-magic. |
11 |
> |
12 |
> Now when the user did not tweak CFLAGS/CXXFLAGS yet, thus having them |
13 |
> empty, we end up building shared-lib (uses -fPIC) without any |
14 |
> optimization flag. |
15 |
> Unfortunately, this is the only situation where it doesn't work [1]. |
16 |
> [1] http://gcc.gnu.org/ml/gcc-help/2007-04/msg00200.html |
17 |
> |
18 |
> Attached patch adds '-O1' if we have '-O0' or no '-O' at all. |
19 |
> Should we keep '-O3' in this case ? |
20 |
> But when user wants '-g', '-O3' might be ways less useful than '-O1'. |
21 |
> |
22 |
> With this patch, openssl-0.9.8e can be unmasked for x86-linux. |
23 |
> |
24 |
> /haubi/ |
25 |
> |
26 |
> On Thu, 2007-04-12 at 15:58 +0200, Michael Haubenwallner wrote: |
27 |
> > Hi, |
28 |
> > |
29 |
> > I've hit this compile error on x86-linux with dev-libs/openssl-0.9.8e: |
30 |
> > http://www.mail-archive.com/openssl-dev@×××××××.org/msg22324.html |
31 |
> > |
32 |
> > dev-libs/openssl-0.9.8d works. |
33 |
> > |
34 |
> > /haubi/ |
35 |
> > |
36 |
> |
37 |
> -- |
38 |
> Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz |
39 |
> Sitz der Gesellschaft: Friesach bei Graz |
40 |
> UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K |
41 |
> Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz |
42 |
> |
43 |
|
44 |
> Index: openssl-0.9.8e.ebuild |
45 |
> =================================================================== |
46 |
> --- openssl-0.9.8e.ebuild (revision 5558) |
47 |
> +++ openssl-0.9.8e.ebuild (working copy) |
48 |
> @@ -102,6 +102,12 @@ |
49 |
> shared threads \ |
50 |
> || die "Configure failed" |
51 |
> |
52 |
> + if [[ ${CHOST} == i?86*-*-linux* ]]; then |
53 |
> + # does not compile without optimization on x86-linux |
54 |
> + filter-flags -O0 |
55 |
> + is-flagq -O* || append-flags -O1 |
56 |
> + fi |
57 |
> + |
58 |
> # Clean out hardcoded flags that openssl uses |
59 |
> local CFLAG=$(grep ^CFLAG= Makefile | LC_ALL=C sed \ |
60 |
> -e 's:^CFLAG=::' \ |
61 |
|
62 |
|
63 |
-- |
64 |
Fabian Groffen |
65 |
Gentoo on a different level |
66 |
|
67 |
-- |
68 |
gentoo-alt@g.o mailing list |