Hello, VxWorks environments all provide a few environment variables that help locate components such as header files or libraries.
WIND_BASE typically designates an installation root and the
regular VxWorks ports leverage this with:
gcc/confg/vxworks.h:
#define VXWORKS_ADDITIONAL_CPP_SPEC \
"%{!nostdinc: \
%{isystem*} -idirafter \
%{mrtp: %:getenv(WIND_USR /h) \
;: %:getenv(WIND_BASE /target/h)}}"
The VxWorksAE configuration (vxworksae.h) currently uses a hardcoded value
within /home instead:
/* The directory containing the VxWorks AE target headers. */
#define VXWORKSAE_TARGET_DIR \
"/home/tornado/vxworks-ae/latest/target"
This patch adjusts the definition and users to leverage
$WIND_BASE instead (this is !rtp only).
We have been using a variant of this for years in our gcc 4.7
based compiler series, checked that the patch works fine with
gcc-4.9 and that it applies as-is on the current mainline.
OK to commit ?
Thanks in advance,
With Kind Regards,
Olivier
2014-09-01 Olivier Hainque <[email protected]>
* config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
$WIND_BASE instead of designating a harcoded arbitrary home dir.
(VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
vxae-targetdir.diff
Description: Binary data
