Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509658 - x11-wm/awesome-3.5.5 injects all kinds of CFLAGS
Summary: x11-wm/awesome-3.5.5 injects all kinds of CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Maxim Koltsov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-06 03:08 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-08-25 03:32 UTC (History)
3 users (show)

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 Jeroen Roovers (RETIRED) gentoo-dev 2014-05-06 03:08:09 UTC
Looking at a single call out of many... Note that I didn't ask for a debug build, but I do immediately get -DNDEBUG thrown in:

/usr/lib64/distcc/bin/x86_64-pc-linux-gnu-gcc    -DNDEBUG

These next few are mine:

 -march=core2 -frecord-gcc-switches -g -pipe -O2 -Wall -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-tbm -mno-avx -mno-sse4.2 -mno-sse4.1 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=2048 -mtune=core2 -Wno-comment

I didn't order an -O3, but I guess it goes with the -DNDEBUG:

 -O3 -DNDEBUG 

and these stand apart from the usual includes:

 -I/var/tmp/portage/x11-wm/awesome-3.5.5/work/awesome-3.5.5 -I/var/tmp/portage/x11-wm/awesome-3.5.5/work/awesome-3.5.5_build -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/startup-notification-1.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include

To round it off, after injecting -O3, we get -O1 as a bonus. And -ggdb3! And -rdynamic!

 -O1 -std=gnu99 -ggdb3 -rdynamic -fno-strict-aliasing -Wall -Wextra -Wchar-subscripts -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare -Wunused -Wno-unused-parameter -Wuninitialized -Winit-self -Wpointer-arith -Wformat-nonliteral -Wno-format-zero-length -Wmissing-format-attribute -Wmissing-prototypes -Wstrict-prototypes -o CMakeFiles/awesome.dir/awesome.c.o -c /var/tmp/portage/x11-wm/awesome-3.5.5/work/awesome-3.5.5/awesome.c

Awesome!
Comment 1 Nikolaj Šujskij 2014-06-02 18:05:21 UTC
That's where -O1 and friends seem to come from:
http://git.naquadah.org/?p=awesome.git;a=blob;f=awesomeConfig.cmake;h=c305dc53743996d539a9e8725fe7809db1fdf6ce;hb=9a0ba0ff5791f247fb8a0067f304ef1e4822028f#l18

Haven't yet found anything about -O3 -DNDEBUG
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-08-25 03:32:38 UTC
fixed in 3.5.5-r1

-add_definitions(-O1 -std=gnu99 -ggdb3 -rdynamic -fno-strict-aliasing -Wall -Wextra
+add_definitions(-std=gnu99 -fno-strict-aliasing -Wall -Wextra


let me know if more was needed.