This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix target dependent headerfile search path


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?


	* (gcc_gxx_target_include_dir): Use $(target_alias).

Index: gcc/
RCS file: /cvs/gcc/gcc/gcc/,v
retrieving revision 1.594
diff -u -p -r1.594
--- gcc/	2001/02/02 19:41:36	1.594
+++ gcc/	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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]