This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] dejagnu support for simple cross compilers
- To: bkoz at redhat dot com
- Subject: Re: [v3] dejagnu support for simple cross compilers
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Tue, 10 Apr 2001 16:35:54 -0700
- CC: aoliva at redhat dot com, gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- References: <Pine.SOL.3.91.1010410161749.12855A-100000@cse.cygnus.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> Date: Tue, 10 Apr 2001 16:23:16 -0700 (PDT)
> From: Benjamin Kosnik <bkoz@redhat.com>
> cc: gcc-patches@gcc.gnu.org, geoffk@redhat.com, rth@redhat.com
>
> > > ! LIBS="${LIBS} -B${CROSS_LIB_PATH}/"
> >
> > Please consider using $(FLAGS_FOR_TARGET) or some variant thereof. It
> > will help finding crt0.o when it's built in libgloss, for example.
>
> Hmm. I can't seem to get
>
> FLAGS_FOR_TARGET
> CFLAGS_FOR_TARGET
> LIBCFLAGS_FOR_TARGET
>
> to work. Any of them.
>
> FLAGS_FOR_TARGET is defined in the top-level Makefile of my x86-linux -x-
> powerpc-eabism build directory as follows:
>
> FLAGS_FOR_TARGET = -nostdinc -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem
> $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include
> -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem
> $(build_tooldir)/include -L$$r/ld
>
> Looks encouraging, but it isn't passed down to target libs. Even if I add
> it to BASE_FLAGS_TO_PASS in the toplevel Makefile, and AM_MAKEFLAGS in
> libstdc++v3/Makefile.am.
It's passed down, I believe, as 'CFLAGS', as in target libs it is no
longer the flags for the "target" but flags for the host. (The
libraries don't have a "target", anyway, because they are not
compilers or assemblers.)
--
- Geoffrey Keating <geoffk@geoffk.org>