gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Mar 2007 12:37:31 +0000 (12:37 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Mar 2007 12:37:31 +0000 (12:37 +0000)
* config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
Use $MULTIDIR to choose between the kernel and RTP headers,
and use $WIND_BASE and $WIND_USR to locate them.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122474 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/t-vxworks

index 7b6870b..688ffd6 100644 (file)
@@ -1,3 +1,9 @@
+2007-03-02  Richard Sandiford  <richard@codesourcery.com>
+
+       * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
+       Use $MULTIDIR to choose between the kernel and RTP headers,
+       and use $WIND_BASE and $WIND_USR to locate them.
+
 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
            Michael Meissner  <michael.meissner@amd.com>
 
index 9a6a6b0..f623503 100644 (file)
@@ -21,8 +21,11 @@ EXTRA_HEADERS += $(srcdir)/gthr-vxworks.h gthr-default.h
 # This ensures that the correct target headers are used; some
 # VxWorks system headers have names that collide with GCC's
 # internal (host) headers, e.g. regs.h.
-# FIXME: May not be necessary anymore.
-LIBGCC2_INCLUDES="-I$(SYSTEM_HEADER_DIR)"
+LIBGCC2_INCLUDES = -nostdinc -I \
+  `case "/$$(MULTIDIR)" in \
+     */mrtp*) echo $(WIND_USR)/h ;; \
+     *) echo $(WIND_BASE)/target/h ;; \
+   esac`
 
 EXTRA_MULTILIB_PARTS =