Bug 108275 - dev-db/firebird overrides CFLAGS and always builds with -O3
|
Bug#:
108275
|
Product: Gentoo Linux
|
Version: 2005.1
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: sekretarz@gentoo.org
|
Reported By: claudio@claudio.csita.unige.it
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: dev-db/firebird overrides CFLAGS and always builds with -O3
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-10-06 06:41 0000
|
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
Tested and fixed in portage, thanks vapier.