Closed 3246251196 closed 12 months ago
@afxgroup Currently, this will break because of stdarg.h. It looks like we need a proper implementation of that.
This commit now adds -nostdinc which is expected. We shall not rely on another C library to implement this C library. In doing this change I found that stdarg.h needs a clib4 specific implementation. What it is currently trying to do is to rely on an external CLIB that would be supplied by the MCRT/SPEC file.
stdarg.h is the only file that needs this implementation.
stdarg.h should be included via include_next with gcc one. Let me check
…sts and that the SDK header files are found. At least, it checks if the SDK include_h folder exists and assumes the headers are in there. -nostdinc, -nostartfiles and -nostdlib are now moved to the OPTIONS variable which is propagated throughout the necessary fules