]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
Makefile.uk: Use -ffreestanding as internal build option RELEASE-0.13.0 RELEASE-0.13.1
authorRazvan Deaconescu <razvand@unikraft.io>
Thu, 11 May 2023 11:50:37 +0000 (14:50 +0300)
committerUnikraft <monkey@unikraft.io>
Mon, 15 May 2023 06:42:05 +0000 (06:42 +0000)
commit4061e0ea6b604f97884b74f15f14060e4eb35250
tree0942b3c0f72c18c94a09f332d930cbbe1eba9b0e
parent421866f88ac413d6edc69e6d9494d56da28f6b41
Makefile.uk: Use -ffreestanding as internal build option

As a standard C library (libc), newlib is to be built in a freestanding
environment (i.e. not relying on a libc). For that, build internal
newlib source code files with the `-ffreestanding` option. Otherwise, a
hosted environment will be used; in a hosted environment, certain
optimizations may be enabled by the compiler, and they may cause issues
(such as an infinite set of calls).

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Approved-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #33
Makefile.uk