Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 369605 - =net-analyzer/argus-3.0.4 issue with CFLAGS="-O?"
Summary: =net-analyzer/argus-3.0.4 issue with CFLAGS="-O?"
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 08:35 UTC by Agostino Sarubbo
Modified: 2011-06-01 15:22 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2011-06-01 08:35:36 UTC
Example from log:

x86_64-pc-linux-gnu-gcc -O3 -march=native -O2 -g0 -I. -I/usr/include -I./../include  -DHAVE_CONFIG_H -c argus.c


amd64box ~ # emerge --info | grep CFLAGS
CFLAGS="-march=native -O2 -g0"


So, my cflag "-O?" overwrites "-O3" appended by buildsystem, but if i not declare "-O?" in my cflags it will compiled with "-O3", so:

CFLAGS="" emerge argus produces:


x86_64-pc-linux-gnu-gcc -O3  -I. -I/usr/include -I./../include  -I./../argus -DHAVE_CONFIG_H -Dyylval=argus_lval -c grammar.c


thanks
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2011-06-01 15:22:24 UTC
Build system provides defaults and user allowed to override. I don't see any problem here...