cgcc: please support -iwithprefix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When doing embedded work, like kernels or other nonstandard
environments, we want to exclude the standard library with -nostdinc,
but that also excludes header files intrinsic to the *compiler* such as
<stdarg.h>.

gcc uses the option -iwithprefix for that, in particular "-iwithprefix
include" adds those compiler-specific header files back into the include
path.  cgcc doesn't seem to understand that and instead interprets the
option argument as an additional file.

It is unsual in gcc for an option argument to be separate, but it isn't
unique:

        -idirafter DIR
        -include FILE  -imacros FILE
        -iprefix FILE  -iwithprefix DIR
        -iwithprefixbefore DIR  -isystem DIR
        -imultilib DIR -isysroot DIR
	-Xpreprocessor OPTION
	-Xassembler OPTION
	-T SCRIPT
	-Xlinker OPTION
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux