PATCH - support for SYSROOT[_HEADERS]_SUBDIR_SPEC
gp@qnx.com
gp@qnx.com
Wed Apr 2 21:12:00 GMT 2003
Hi.
This patch adds support for SYSROOT_SUBDIR_SPEC and
SYSROOT_HEADERS_SUBDIR_SPEC as per discussions on the gcc mailing list.
It allows subdirs for binaries and/or headers to be spec'd and used iff
TARGET_SYSTEM_ROOT is set. If defined, the values specified are appended to
the sysroot.
This is part of the pending support for QNX Neutrino. Our sysroot has a
single common usr/include with cpu subdirs for binaries. For example:
${sysroot}/usr/include
${sysroot}/armle/lib
${sysroot}/armbe/lib
So the gcc/config/arm/nto.h would define a SYSROOT_SUBDIR_SPEC as follows:
#define SYSROOT_SUBDIR_SPEC "arm%{EB:be}%{!EB:le}"
and also use it in other specs via %R.
I removed the global flag "target_system_root_changed", as with it, I was not
seeing the correct usr/include when using sysroot.
Please let me know. I have a patch almost ready for i386 QNX Neutrino that
relies on this patch, and would like to submit it ASAP.
Regards,
GP
Graeme Peterson
QNX Tools Group
gp@qnx.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc.c.diff
Type: application/octet-stream
Size: 6204 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030402/feac3ced/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLogEntry
Type: application/octet-stream
Size: 142 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20030402/feac3ced/attachment-0001.obj>
More information about the Gcc-patches
mailing list