| 1 |
# Don't build libgcc.a with debug info |
| 2 |
LIBGCC2_DEBUG_CFLAGS = |
| 3 |
|
| 4 |
# We provide our own implementation for __clear_cache, using a |
| 5 |
# VxWorks specific entry point. |
| 6 |
LIB2FUNCS_EXCLUDE += _clear_cache |
| 7 |
|
| 8 |
# Arrange to have the correct target headers used when compiling |
| 9 |
# libgcc. We specifically need to handle VxWorks system headers |
| 10 |
# having names that collide with GCC's internal headers. |
| 11 |
# |
| 12 |
# For example, compiling gthr-vxworks.c #includes <taskLib.h> |
| 13 |
# which in turn #includes <regs.h>, which exists both in the gcc |
| 14 |
# source tree and as a VxWorks system header. We need that |
| 15 |
# #include to get the VxWorks version, not the compiler one. |
| 16 |
# |
| 17 |
# We still need to make sure that the local libgcc headers prevail |
| 18 |
# (e.g. ./unwind.h), and that gcc provided header files intended |
| 19 |
# to be user visible eventually are visible as well (gcc/include |
| 20 |
# and gcc/include-fixed). |
| 21 |
# |
| 22 |
# The latter are added unconditionally as -isystem during regular |
| 23 |
# cross builds via the %I spec processing and search paths introduced |
| 24 |
# by -B options. These take priority over whatever we can add here, |
| 25 |
# even with -nostdinc, and end up at the tail of the search chain. |
| 26 |
# |
| 27 |
# We keep explicit options nevertheless, to accommodate canadian |
| 28 |
# setups where the libraries are built with an installed cross compiler, |
| 29 |
# without -B. Also note, incidentally, that the detection of duplicate |
| 30 |
# paths differs between Windows and Linux hosts as the latter can perform |
| 31 |
# inode based checks while the former may only rely on name comparisons. |
| 32 |
|
| 33 |
LIBGCC2_INCLUDES = -nostdinc -I. \ |
| 34 |
$(if $(findstring vxworks7, $(target_noncanonical)), \ |
| 35 |
-I$(VSB_DIR)/h -I$(VSB_DIR)/share/h -I=/system -I=/public, \ |
| 36 |
-I=/ -I=/wrn/coreip) \ |
| 37 |
-isystem $(MULTIBUILDTOP)../../gcc/include-fixed$(MULTISUBDIR) \ |
| 38 |
-isystem $(MULTIBUILDTOP)../../gcc/include |
| 39 |
|
| 40 |
# Use these also for the vxcrstuff objects (.e.g for version.h), on top of |
| 41 |
# the options possibly already set specifically for the target: |
| 42 |
CRTSTUFF_T_CFLAGS += $(LIBGCC2_INCLUDES) |