Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139457 - gnash uses CFLAGS when compiling C++ code
Summary: gnash uses CFLAGS when compiling C++ code
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 10:40 UTC by SpanKY
Modified: 2006-07-06 17:48 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 SpanKY gentoo-dev 2006-07-06 10:40:08 UTC
$ portageq envvar -v CFLAGS CXXFLAGS
CFLAGS='-O2 -pipe -march=k8 -Wimplicit-function-declaration'
CXXFLAGS='-O2 -pipe -march=k8'

as you can see, i have slightly diff CFLAGS/CXXFLAGS because the warning i use here isnt valid for C++ ... when building gnash, i see crap like below ... in other words, the ebuild or build system (i didnt really look) wrongly uses $CFLAGS for C++ code instead of $CXXFLAGS

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I.. -I../libbase -I/usr/include -I/usr/include/SDL -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -pipe -march=k8 -Wimplicit-function-declaration -ansi -Wall -I/usr/include/SDL -I.. -I. -I.. -I../libbase -I/usr/include -I/usr/include/SDL -O2 -pipe -march=k8 -ansi -Wall -MT tqt.lo -MD -MP -MF .deps/tqt.Tpo -c tqt.cpp  -fPIC -DPIC -o .libs/tqt.o
cc1plus: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-07-06 17:48:40 UTC
Thanks I made and committed a patch for your issue also reported upstream:
http://savannah.gnu.org/bugs/?func=detailitem&item_id=17049