Menu

#254 --enable-expopt=full with CFLAGS set gives strange makefile

Unknown
closed
nobody
5
2007-06-26
2007-01-12
Cannibal
No

I'm not sure if this is to be considered as a bug:
My configuration:
CFLAGS='-O3 -march=athlon-tbird -m3dnow ' \ ./configure \ --prefix=/usr/local/lame/lame-3.97 \ --disable-largefile \ --disable-gtktest \ --mandir=/usr/local/lame/lame-3.97/share/man \ --enable-nasm \ --disable-brhist \ --enable-expopt=full

produces the following setting in Makefile in lame 3.97:
CFLAGS='-O3 -ffast-math -funroll-loops -maccumulate-outgoing-args -fschedule-insns2 -fbranch-count-reg -fforce-addr -fforce-mem -mcpu=pentiumpro -march=pentiumpro -mfancy-math-387 -malign-double -Wall -pipe -O3 -march=athlon-tbird -m3dnow'

I guess there shouldn't be 2 different settings for march.
BTW, the machine is an Athlon Thunderbird

Discussion

  • Alexander Leidinger

    Logged In: YES
    user_id=90585
    Originator: NO

    The first -march is from the expopts, the second one is from your CFLAGS. If gcc sees more than one, it takes the last one. So it is not a problem.

     
  • Alexander Leidinger

    • status: open --> closed
     

Log in to post a comment.