AmigaLabs / clib4

Clib4 for AmigaOS4
Other
14 stars 7 forks source link

The makefile will perform a check to ensure that a cross compiler exi… #156

Closed 3246251196 closed 12 months ago

3246251196 commented 12 months ago

…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

3246251196 commented 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.

afxgroup commented 12 months ago

stdarg.h should be included via include_next with gcc one. Let me check