Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] gcc flags

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Andrew Stitt <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] gcc flags
  • Date: Thu, 1 Aug 2002 15:39:10 -0700

So ive been writting a couple of spells. Some of them dont come with
makefiles. since theres only one source file. I want to be able to
include the optimization features, ie -march=i686 -mcpu=i686

so i have line like this in BUILD:
gcc -o foo foo.c $CFLAGS

seems reasonable to me. But whenever I try casting this I get the
following error:

cc1: bad value (i686 -march=i686 -O3) for -mcpu= switch

if i hardcode the value of $CLFAGS onto the script everything works just
fine. whats going on?





Archive powered by MHonArc 2.6.24.

Top of Page