1# Don't build libgcc.a with debug info
2LIBGCC2_DEBUG_CFLAGS =
3
4# We provide our own implementation for __clear_cache, using a
5# VxWorks specific entry point.
6LIB2FUNCS_EXCLUDE += _clear_cache
7LIB2ADD += $(srcdir)/config/vxcache.c
8
9# Extra libgcc2 modules used by gthr-vxworks.h functions
10LIB2ADDEH += $(srcdir)/config/vxlib.c $(srcdir)/config/vxlib-tls.c
11
12# This ensures that the correct target headers are used; some VxWorks
13# system headers have names that collide with GCC's internal (host)
14# headers, e.g. regs.h. Make sure the local libgcc headers still
15# prevail (e.g. unwind.h), and that gcc provided header files intended
16# to be user visible eventually are visible as well.
17LIBGCC2_INCLUDES = -nostdinc -I. \
18  -I$(VSB_DIR)/h -I$(VSB_DIR)/share/h \
19  -I$(MULTIBUILDTOP)../../gcc/include \
20  `case "/$(MULTIDIR)" in \
21      */mrtp*) echo -I$(VSB_DIR)/usr/h/public -I$(VSB_DIR)/usr/h ;; \
22      *) echo -I$(VSB_DIR)/krnl/h/system -I$(VSB_DIR)/krnl/h/public ;; \
23   esac`
24
25