Commit f098ead2 by Richard Henderson Committed by Richard Henderson

Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.

        * 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.

From-SVN: r46860
parent 775db490
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> 2001-11-08 Aldy Hernandez <aldyh@redhat.com>
* config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
......
...@@ -161,7 +161,7 @@ USER_H = $(srcdir)/ginclude/stdarg.h $(srcdir)/ginclude/stddef.h \ ...@@ -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. # The GCC to use for compiling libgcc.a, enquire, and crt*.o.
# Usually the one we just built. # Usually the one we just built.
# Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS). # 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. # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
# It omits XCFLAGS, and specifies -B./. # It omits XCFLAGS, and specifies -B./.
...@@ -234,7 +234,7 @@ SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h ...@@ -234,7 +234,7 @@ SPLAY_TREE_H= $(srcdir)/../include/splay-tree.h
FIBHEAP_H = $(srcdir)/../include/fibheap.h FIBHEAP_H = $(srcdir)/../include/fibheap.h
# Default cross SYSTEM_HEADER_DIR, to be overridden by targets. # 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. # Control whether to run fixproto and fixincludes.
STMP_FIXPROTO = stmp-fixproto STMP_FIXPROTO = stmp-fixproto
...@@ -297,7 +297,7 @@ dollar = @dollar@ ...@@ -297,7 +297,7 @@ dollar = @dollar@
gcc_tooldir = @gcc_tooldir@ gcc_tooldir = @gcc_tooldir@
# Used to install the shared libgcc. # Used to install the shared libgcc.
slibdir = @slibdir@ 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) build_tooldir = $(exec_prefix)/$(target_alias)
# Directory in which the compiler finds target-independent g++ includes. # Directory in which the compiler finds target-independent g++ includes.
gcc_gxx_include_dir = @gcc_gxx_include_dir@ gcc_gxx_include_dir = @gcc_gxx_include_dir@
...@@ -695,7 +695,7 @@ ORDINARY_FLAGS_TO_PASS = \ ...@@ -695,7 +695,7 @@ ORDINARY_FLAGS_TO_PASS = \
"prefix=$(prefix)" \ "prefix=$(prefix)" \
"local_prefix=$(local_prefix)" \ "local_prefix=$(local_prefix)" \
"gxx_include_dir=$(gcc_gxx_include_dir)" \ "gxx_include_dir=$(gcc_gxx_include_dir)" \
"tooldir=$(tooldir)" \ "build_tooldir=$(build_tooldir)" \
"gcc_tooldir=$(gcc_tooldir)" \ "gcc_tooldir=$(gcc_tooldir)" \
"bindir=$(bindir)" \ "bindir=$(bindir)" \
"libsubdir=$(libsubdir)" \ "libsubdir=$(libsubdir)" \
...@@ -2200,15 +2200,15 @@ stmp-fixinc: fixinc.sh gsyslimits.h ...@@ -2200,15 +2200,15 @@ stmp-fixinc: fixinc.sh gsyslimits.h
cp $(srcdir)/gsyslimits.h include/syslimits.h; \ cp $(srcdir)/gsyslimits.h include/syslimits.h; \
fi; \ fi; \
chmod a+r include/syslimits.h) 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. # 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) # $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir)
# exists. # exists.
# We deliberately use tooldir instead of gcc_tooldir here. gcc_tooldir # ??? Better would be to use -isystem $(build_tooldir)/sys-include,
# won't work because libsubdir doesn't exist yet. # but fixincludes does not take such arguments.
if [ "$(SYSTEM_HEADER_DIR)" = "$(tooldir)/sys-include" ] \ if [ "$(SYSTEM_HEADER_DIR)" = "$(build_tooldir)/sys-include" ] \
&& [ -d $(tooldir)/sys-include ]; then \ && [ -d $(build_tooldir)/sys-include ]; then \
if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \ 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 ] ; 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; \ if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment