This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: TARGET_SYSTEM_ROOT not defined for c-opts.c
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gp at qnx dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 13 Apr 2003 10:58:20 -0400
- Subject: Re: TARGET_SYSTEM_ROOT not defined for c-opts.c
- References: <200304112118.RAA30122@hub.ott.qnx.com>
On Fri, Apr 11, 2003 at 09:06:35PM -0000, gp at qnx dot com wrote:
> Hi, all.
>
> TARGET_SYSTEM_ROOT is not being defined for gcc/c-opts.c in the Makefile, and
> so it is always null. Is the following the right place to fix this?
I'd rather not define it everywhere. Maybe just for that one file.
Neil? Your patch introduced this, I think... that code didn't used to
be in c-opts.c, so it used to pick up TARGET_SYSTEM_ROOT from either
PREPROCESSOR_DEFINES or DRIVER_DEFINES.
> *** gcc/gcc/Makefile.in Fri Apr 11 14:26:11 2003
> --- gcc.new/gcc/Makefile.in Fri Apr 11 17:07:55 2003
> *************** CPPLIB_H = cpplib.h line-map.h
> *** 665,671 ****
> # IN_GCC distinguishes between code compiled into GCC itself and other
> # programs built during a bootstrap.
> # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
> ! INTERNAL_CFLAGS = -DIN_GCC @CROSS@
>
> # This is the variable actually used when we compile.
> # If you change this line, you probably also need to change the definition
> --- 665,671 ----
> # IN_GCC distinguishes between code compiled into GCC itself and other
> # programs built during a bootstrap.
> # autoconf inserts -DCROSS_COMPILE if we are building a cross compiler.
> ! INTERNAL_CFLAGS = -DIN_GCC @CROSS@ @TARGET_SYSTEM_ROOT_DEFINE@
>
> # This is the variable actually used when we compile.
> # If you change this line, you probably also need to change the definition
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer