<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>139457</bug_id>
          
          <creation_ts>2006-07-06 10:40 0000</creation_ts>
          <short_desc>gnash uses CFLAGS when compiling C++ code</short_desc>
          <delta_ts>2006-07-06 17:48:40 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>vapier@gentoo.org</reporter>
          <assigned_to>genstef@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>vapier@gentoo.org</who>
            <bug_when>2006-07-06 10:40:08 0000</bug_when>
            <thetext>$ portageq envvar -v CFLAGS CXXFLAGS
CFLAGS=&apos;-O2 -pipe -march=k8 -Wimplicit-function-declaration&apos;
CXXFLAGS=&apos;-O2 -pipe -march=k8&apos;

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 &quot;-Wimplicit-function-declaration&quot; is valid for C/ObjC but not for C++
cc1plus: warning: command line option &quot;-Wimplicit-function-declaration&quot; is valid for C/ObjC but not for C++</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>genstef@gentoo.org</who>
            <bug_when>2006-07-06 17:48:40 0000</bug_when>
            <thetext>Thanks I made and committed a patch for your issue also reported upstream:
http://savannah.gnu.org/bugs/?func=detailitem&amp;item_id=17049</thetext>
          </long_desc>
      
    </bug>

</bugzilla>