Gentoo Archives: gentoo-alt

From: Michael Haubenwallner <michael.haubenwallner@×××××××.at>
To: gentoo-alt@l.g.o
Subject: [gentoo-alt] Re: [prefix][linux] openssl-0.9.8e does not work
Date: Thu, 26 Apr 2007 07:47:45
Message-Id: 1177573648.7201.19.camel@sapc154
In Reply to: [gentoo-alt] [prefix][linux] openssl-0.9.8e does not work by Michael Haubenwallner
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

Attachments

File name MIME type
openssl-x86-linux.patch text/x-patch

Replies

Subject Author
Re: [gentoo-alt] Re: [prefix][linux] openssl-0.9.8e does not work Fabian Groffen <grobian@g.o>