http://gcc.gnu.org/ml/gcc-patches/2000-05/msg01104.html
H . J . Lu
hjl@valinux.com
Sat May 20 22:10:00 GMT 2000
On Sat, May 20, 2000 at 09:51:33AM -0700, Mark Mitchell wrote:
>
> Alexandre> Another alternative to solve this problem, that occurs
> Alexandre> to me only now, is to append -B${prefix}/${target}/ to
> Alexandre> the GCC invocation line.
>
> Yes, that sounds like a better solution.
>
Ok, here is the patch. I also swapped the order of -B./ | -B$$r/gcc
and -B$(build_tooldir)/bin/ since the last one will be used and we want
to use the one in gcc. For ia64, binutils changed a few times. If we
have -B./ -B$(build_tooldir)/bin/ and -B$$r/gcc -B$(build_tooldir)/bin/,
the old one in $(build_tooldir)/bin/ will be used. As the result, we
get some strange errors.
Thanks for everyone.
H.J.
---
20000-05-20 H.J. Lu (hjl@gnu.org)
* gcc/Makefile.in (GCC_FOR_TARGET): Make sure as/ld in the gcc
directory are used if they exist. Make sure
$(build_tooldir)/include is searched for header files,
$(build_tooldir)/lib/ for library files.
* Makefile (CC_FOR_TARGET): Likewise.
(CXX_FOR_TARGET): Likewise.
--- gcc/Makefile.in.tool Wed May 17 14:48:00 2000
+++ gcc/Makefile.in Wed May 17 14:52:07 2000
@@ -162,7 +162,7 @@ INSTALL_ASSERT_H = install-assert-h
# The GCC to use for compiling libgcc2.a, enquire, and libgcc1-test.
# Usually the one we just built.
# Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
-GCC_FOR_TARGET = ./xgcc -B$(build_tooldir)/bin/ -B./ -isystem $(build_tooldir)/include
+GCC_FOR_TARGET = ./xgcc -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -B./ -isystem $(build_tooldir)/include
# This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
# It omits XCFLAGS, and specifies -B./.
--- Makefile.in.tool Wed May 17 14:47:52 2000
+++ Makefile.in Wed May 17 16:37:27 2000
@@ -226,7 +226,7 @@ CC_FOR_TARGET = ` \
;; \
esac \
else \
- echo $$r/gcc/xgcc -B$$r/gcc/ -B$(build_tooldir)/bin/; \
+ echo $$r/gcc/xgcc -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -B$$r/gcc/ -isystem $(build_tooldir)/include; \
fi; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
@@ -240,7 +240,7 @@ CC_FOR_TARGET = ` \
# variable is passed down to the gcc Makefile, where it is used to
# build libgcc2.a. We define it here so that it can itself be
# overridden on the command line.
-GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ -B$(build_tooldir)/bin/ -I$(build_tooldir)/include
+GCC_FOR_TARGET = $$r/gcc/xgcc -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -B$$r/gcc/ -I$(build_tooldir)/include
CHILL_FOR_TARGET = ` \
if [ -f $$r/gcc/xgcc ] ; then \
@@ -269,7 +269,7 @@ CXX_FOR_TARGET = ` \
;; \
esac \
else \
- echo $$r/gcc/g++ -B$$r/gcc/ -B$(build_tooldir)/bin/; \
+ echo $$r/gcc/g++ -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -B$$r/gcc/ -I$(build_tooldir)/include; \
fi; \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
More information about the Gcc-patches
mailing list