diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-08 22:48:13 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-08 22:48:13 +0000 |
| commit | 976ceec9596d679f4f45fe52e36943cec69979c8 (patch) | |
| tree | 5a6e355c1dcef56d395c5150f7821dbe940de7c8 | |
| parent | 77c46d92fe0c6aac421fbed8e24be591c93689ae (diff) | |
| download | ppe42-gcc-976ceec9596d679f4f45fe52e36943cec69979c8.tar.gz ppe42-gcc-976ceec9596d679f4f45fe52e36943cec69979c8.zip | |
* Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
(CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
(ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46860 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/Makefile.in | 20 |
2 files changed, 16 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c503a0ff0e8..d573ed0ad23 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2001-11-08 Richard Henderson <rth@redhat.com> + + * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include. + (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir. + (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise. + 2001-11-08 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec. diff --git a/gcc/Makefile.in b/gcc/Makefile.in index ed0413b08cf..b51fc436906 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -161,7 +161,7 @@ USER_H = $(srcdir)/ginclude/stdarg.h $(srcdir)/ginclude/stddef.h \ # The GCC to use for compiling libgcc.a, enquire, and crt*.o. # Usually the one we just built. # Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS). -GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include +GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET. # It omits XCFLAGS, and specifies -B./. @@ -234,7 +234,7 @@ SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h FIBHEAP_H = $(srcdir)/../include/fibheap.h # Default cross SYSTEM_HEADER_DIR, to be overridden by targets. -CROSS_SYSTEM_HEADER_DIR = $(tooldir)/sys-include +CROSS_SYSTEM_HEADER_DIR = $(build_tooldir)/sys-include # Control whether to run fixproto and fixincludes. STMP_FIXPROTO = stmp-fixproto @@ -297,7 +297,7 @@ dollar = @dollar@ gcc_tooldir = @gcc_tooldir@ # Used to install the shared libgcc. slibdir = @slibdir@ -# Since tooldir does not exist at build-time, use -B$(build_tooldir)/bin/ +# Since gcc_tooldir does not exist at build-time, use -B$(build_tooldir)/bin/ build_tooldir = $(exec_prefix)/$(target_alias) # Directory in which the compiler finds target-independent g++ includes. gcc_gxx_include_dir = @gcc_gxx_include_dir@ @@ -695,7 +695,7 @@ ORDINARY_FLAGS_TO_PASS = \ "prefix=$(prefix)" \ "local_prefix=$(local_prefix)" \ "gxx_include_dir=$(gcc_gxx_include_dir)" \ - "tooldir=$(tooldir)" \ + "build_tooldir=$(build_tooldir)" \ "gcc_tooldir=$(gcc_tooldir)" \ "bindir=$(bindir)" \ "libsubdir=$(libsubdir)" \ @@ -2200,15 +2200,15 @@ stmp-fixinc: fixinc.sh gsyslimits.h cp $(srcdir)/gsyslimits.h include/syslimits.h; \ fi; \ chmod a+r include/syslimits.h) -# If $(SYSTEM_HEADER_DIR) is $(tooldir)/sys-include, and +# If $(SYSTEM_HEADER_DIR) is $(build_tooldir)/sys-include, and # that directory exists, then make sure that $(libsubdir) exists. -# This is because cpp is compiled to find $(tooldir)/include via +# This is because cpp is compiled to find $(gcc_tooldir)/include via # $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir) # exists. -# We deliberately use tooldir instead of gcc_tooldir here. gcc_tooldir -# won't work because libsubdir doesn't exist yet. - if [ "$(SYSTEM_HEADER_DIR)" = "$(tooldir)/sys-include" ] \ - && [ -d $(tooldir)/sys-include ]; then \ +# ??? Better would be to use -isystem $(build_tooldir)/sys-include, +# but fixincludes does not take such arguments. + if [ "$(SYSTEM_HEADER_DIR)" = "$(build_tooldir)/sys-include" ] \ + && [ -d $(build_tooldir)/sys-include ]; then \ if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \ if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib; fi; \ if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \ |

