[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"TARGET_ARCH" implicit variable possible trouble

From: Robert P. J. Day
Subject: "TARGET_ARCH" implicit variable possible trouble
Date: Sat, 8 Jan 2005 11:46:14 -0500 (EST)

  again, going over the entire set of make-3.80 implicit rules, and i
just noticed the TARGET_ARCH variable, defined as
"architecture-specific options".  oh, crap.  and i say that because
the project i just inherited has a tendency of setting *precisely*
that variable to represent (not surprisingly) the target architecture,
such as "ppc" or "sh3" or "mips".  i'm guessing the original designer
had no idea that that variable was already part of the implicit rule
set and used it to recursively pass the target architecture.

  in addition, i'm curious why that option doesn't have a "FLAGS"
suffix.  every other variable does:  CFLAGS, CPPFLAGS, FFLAGS,
LDFLAGS, and on and on.  wouldn't defining something like "ARCH_FLAGS"
have made more sense, and been more consistent?


p.s.  i just noticed "TARGET_MACH" as well.  oh, well.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]