[mythtv-commits] Ticket #3820: $CFLAGS and $CXXFLAGS handled incorrectly

MythTV mythtv at cvs.mythtv.org
Sun Aug 12 13:49:45 UTC 2007


#3820: $CFLAGS and $CXXFLAGS handled incorrectly
-----------------------+----------------------------------------------------
 Reporter:  anonymous  |       Owner:  ijr 
     Type:  defect     |      Status:  new 
 Priority:  minor      |   Milestone:      
Component:  mythtv     |     Version:  0.20
 Severity:  medium     |     Mlocked:  0   
-----------------------+----------------------------------------------------
 On setting:
 CHOST="i686-pc-linux-gnu"
 CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
 CXXFLAGS="${CFLAGS}"
 and running
 ./configure
 make

 I see the compiler options set
 "ccache gcc -c -pipe -march=pentiumpro -w -O3 -march=athlon-xp -O2
 -pipe...."

 Without the above environment variable set, the line only contains "...c
 -pipe -march=pentiumpro -w -O3..."

 The configure script should correctly detect the fact that CFLAGS and
 CXXFLAGS are used, and either obey them without barfing in extra,
 contradictory flags, or override them, WHILE NOTIFIYING THE USER! No error
 whatsoever was thrown by configure to indicate to me, the user, that
 something was set up incorrectly.

 Without the environment variables, running "./configure -arch=athlon-xp",
 everything worked as expected.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3820>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list