x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./lib -I./src -I./src -I./audio -I./sbc -I./gdbus -I./attrib -I./btio -I./health -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -DBLUETOOTH_PLUGIN_BUILTIN -DPLUGINDIR=\""/usr/lib64/bluetooth/plugins"\" -march=native -O2 -g0 -D_FORTIFY_SOURCE=2 -fPIC -g -c -o serial/manager.o serial/manager.c Please drop.
Why? Looks like upstream is adding it intentionally :-/
(In reply to comment #1) > Why? Looks like upstream is adding it intentionally :-/ any USEFLAGS mustn't modify CFLAGS environment, exception for -static and so on.
What USE flag is modifying it?
(In reply to comment #3) > What USE flag is modifying it? +debug
But it's not the ebuild who is appending the FLAG, it's upstream, and I am sure there are a lot of packages changing CFLAGS in similar ways by their respective upstreams... maybe I should ask in gentoo-dev mailing list as I doubt this kind of change could ever be upstreamed
+*obexd-0.43 (31 Dec 2011) + + 31 Dec 2011; Pacho Ramos <pacho@gentoo.org> +obexd-0.43.ebuild: + Version bump, disable debug as it simply appends -g to CFLAGS (bug #381323 by + Agostino Sarubbo). +