This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH] Fix target dependent headerfile search path
- To: gcc-patches at gcc dot gnu dot org,libstdc++ at gcc dot gnu dot org
- Subject: [PATCH] Fix target dependent headerfile search path
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Mon, 5 Feb 2001 23:07:05 +0100
Hi,
on my PPC I usually configure with ppc-redhat-linux which results in a
$target_alias of ppc-redhat-linux and a $target of powerpc-redhat-linux-gnu.
Now, the headers get installed into /usr/$(target_alias)/..., but the search
path is set to /usr/$(target)/...
The attached patch fixes that, OK to commit?
Franz.
* Makefile.in (gcc_gxx_target_include_dir): Use $(target_alias).
Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.594
diff -u -p -r1.594 Makefile.in
--- gcc/Makefile.in 2001/02/02 19:41:36 1.594
+++ gcc/Makefile.in 2001/02/05 21:57:37
@@ -319,7 +319,7 @@ build_tooldir = $(exec_prefix)/$(target_
# Directory in which the compiler finds target-independent g++ includes.
gcc_gxx_include_dir = @gcc_gxx_include_dir@
# Directory in which the compiler finds target-dependent g++ includes.
-gcc_gxx_target_include_dir = $(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/$(target)/include/@libstdcxx_incdir@
+gcc_gxx_target_include_dir = $(libsubdir)/$(unlibsubdir)/..`echo $(exec_prefix) | sed -e 's|^$(prefix)||' -e 's|/[^/]*|/..|g'`/$(target_alias)/include/@libstdcxx_incdir@
# Directory to search for site-specific includes.
includedir = $(local_prefix)/include
# assertdir is overridden in cross-make.