This is the mail archive of the gcc-patches@gcc.gnu.org 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]
Other format: [Raw text]

Fix include path problem


The include path for cross compilations in messed up and has the
standard local and system directories in the path (/usr/local/include
and /usr/include).  This is because the test for TARGET_SYSTEM_ROOT
checks if it is defined.  It is always defined from configure.  It has
to be tested if it is 0:

diff -c -3 -p -r1.16798 ChangeLog
*** gcc/ChangeLog       20 Feb 2003 19:31:21 -0000      1.16798
--- gcc/ChangeLog       20 Feb 2003 21:40:43 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2003-02-20  Sean McNeil  <sean at blue dot mcneil dot com>
+
+       * cppdefault.h: Fix test for TARGET_SYSTEM_ROOT.
+
  2003-02-20  David Edelsohn  <edelsohn at gnu dot org>
   
        * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
Index: gcc/cppdefault.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/cppdefault.h,v
retrieving revision 1.7
diff -c -3 -p -r1.7 cppdefault.h
*** gcc/cppdefault.h    13 Feb 2003 17:23:54 -0000      1.7
--- gcc/cppdefault.h    20 Feb 2003 21:40:44 -0000
*************** Foundation, 59 Temple Place - Suite 330,
*** 34,40 ****
  #define STANDARD_INCLUDE_COMPONENT 0
  #endif
   
! #if defined (CROSS_COMPILE) && !defined (TARGET_SYSTEM_ROOT)
  # undef LOCAL_INCLUDE_DIR
  # undef SYSTEM_INCLUDE_DIR
  # undef STANDARD_INCLUDE_DIR
--- 34,40 ----
  #define STANDARD_INCLUDE_COMPONENT 0
  #endif
   
! #if defined (CROSS_COMPILE) && (TARGET_SYSTEM_ROOT == 0)
  # undef LOCAL_INCLUDE_DIR
  # undef SYSTEM_INCLUDE_DIR
  # undef STANDARD_INCLUDE_DIR



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