compile statements should be conditional on options. Look at requiring ISOINFRA for stubs (and whatever else may need string.h)
CDL changed to avoid compiling GDB stubs when not needed. Doing more than this requires either new pseudo CDL options to control compilation, or conditional "compile" CDL command. Example: the file 'drv_api.c' only needs to be compiled if there is no kernel package. The only way to conditionalize this in the CDL would be to introduce an artificial "pseudo" CDL option which is only active if !CYGPKG_KERNEL that does the compile. It would be much cleaner if the CDL actually could express this directly, so for now I'm leaving it as is.
This bug has moved to http://bugs.ecos.sourceware.org/show_bug.cgi?id=54693