Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108275 - dev-db/firebird overrides CFLAGS and always builds with -O3
Summary: dev-db/firebird overrides CFLAGS and always builds with -O3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Karol Wojtaszek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-06 06:41 UTC by Claudio Di Martino
Modified: 2007-12-06 17:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
firebird-1.5.2-build.patch (firebird-1.5.2-build.patch,2.08 KB, patch)
2006-01-03 19:51 UTC, SpanKY
Details | Diff
patch for firebird-2.1.0.16780_beta2-r2 (firebird-cflags-fix.patch,625 bytes, patch)
2007-12-06 17:36 UTC, Andrzej Rybczak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio Di Martino 2005-10-06 06:41:06 UTC
I'm trying to make an ebuild of firebird 1.5.2 with reduced optimizazions since I'm having problems with the standard emerged executables and was told that the symptoms could possibly be caused by some optimization issue.

No matter what I did during the ebuild the configuration process added CFLAGS containing the -O3 switch.
Since gcc takes the last -O switch on the command line I believe it stills produces over optimized code.

Here is a tipical line I get while building:

g++ -O0 -march=pentium4 -pipe -fomit-frame-pointer -O0 -march=pentium4 -pipe -fomit-frame-pointer -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC  -DPROD_BUILD -O0 -march=pentium4 -pipe -fomit-frame-pointer -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC  -DPROD_BUILD -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC  -DPROD_BUILD -DBOOT_BUILD -I../src/include/gen -I../src/include -ggdb -O3 -march=i586 -mcpu=i686 -fno-omit-frame-pointer -fno-builtin -DNDEBUG -DLINUX -pipe -MMD -fPIC  -DPROD_BUILD -c ../src/jrd/os/posix/config_root.cpp -o ../temp/libfbstatic/jrd/os/posix/config_root.o
Comment 1 SpanKY gentoo-dev 2006-01-03 19:51:53 UTC
Created attachment 76125 [details, diff]
firebird-1.5.2-build.patch

it also kills builds on arches like arm because of the retarded flags being forced

this patch should do it
Comment 2 Karol Wojtaszek (RETIRED) gentoo-dev 2006-01-24 14:12:16 UTC
Tested and fixed in portage, thanks vapier.
Comment 3 Andrzej Rybczak 2007-12-06 17:36:46 UTC
Created attachment 137891 [details, diff]
patch for firebird-2.1.0.16780_beta2-r2

patch for firebird-2.1.0.16780_beta2-r2 removing optimize flags.