[klibc] [PATCH] kbuild: add -ffreestanding to required flags
Thorsten Glaser
tg at mirbsd.de
Wed Jun 6 04:27:49 PDT 2018
Bill Wendling dixit:
>New clang versions need the '-ffreestanding' flag because new changes
>convert system calls to their unlocked versions, which don't exist in
>the kernel library.
This is probably wrong, a libc is not, in contrast to a bootloader
or kernel, a freestanding environment.
For the case of GCC, -ffreestanding is definitely wrong.
Please look for another solution, e.g. teach clang that klibc
does not have those unlocked calls. (AIUI klibc only supports
GCC officially anyway…)
bye,
//mirabilos
--
“It is inappropriate to require that a time represented as
seconds since the Epoch precisely represent the number of
seconds between the referenced time and the Epoch.”
-- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2
More information about the klibc
mailing list