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

after some investigation, this has nothing to do with '-g', but with
'-O', or more precise, with missing '-O'.

One thing is that the ebuild removes the openssl-default CFLAG '-O3'
with some sed-magic.

Now when the user did not tweak CFLAGS/CXXFLAGS yet, thus having them
empty, we end up building shared-lib (uses -fPIC) without any
optimization flag.
Unfortunately, this is the only situation where it doesn't work [1].

Attached patch adds '-O1' if we have '-O0' or no '-O' at all.
Should we keep '-O3' in this case ?
But when user wants '-g', '-O3' might be ways less useful than '-O1'.

With this patch, openssl-0.9.8e can be unmasked for x86-linux.


On Thu, 2007-04-12 at 15:58 +0200, Michael Haubenwallner wrote:
> Hi, > > I've hit this compile error on x86-linux with dev-libs/openssl-0.9.8e: >×××××××.org/msg22324.html > > dev-libs/openssl-0.9.8d works. > > /haubi/ >
-- Salomon Automation GmbH - Friesachstrasse 15 - A-8114 Friesach bei Graz Sitz der Gesellschaft: Friesach bei Graz UID-NR:ATU28654300 - Firmenbuchnummer: 49324 K Firmenbuchgericht: Landesgericht fur Zivilrechtssachen Graz


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


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