adtools / amigaos-cross-toolchain

AmigaOS cross compiler for Linux / MacOSX / Windows
184 stars 48 forks source link

Preprocessor uses libnix header files when no CRT library is specified #57

Open cahirwpz opened 8 years ago

cahirwpz commented 8 years ago

Without -noixemul or -mcrt=* preprocessor should fail to find stdlib.h, because the header file is a part of standard C library (either nix or clib2). Following example should fail:

$ cat 0.c
#include <stdlib.h>
#include <stddef.h>
$ PATH=/opt/m68k-amigaos/bin:$PATH m68k-amigaos-gcc -c 0.c

Conclusion: $PREFIX/m68k-amigaos/sys-include should be dropped!