libc is now built as a shared library

This commit is contained in:
Max Wash
2020-03-31 18:41:31 +01:00
parent 5e3d012bf7
commit 9f4e7a2cc6

View File

@@ -69,7 +69,7 @@ file(GLOB platform_headers
set(photon_libc_sources ${photon_libc_sources} ${platform_sources}) set(photon_libc_sources ${photon_libc_sources} ${platform_sources})
set(photon_libc_headers ${photon_libc_headers} ${platform_headers}) set(photon_libc_headers ${photon_libc_headers} ${platform_headers})
add_library(c STATIC ${photon_libc_sources} ${photon_libc_headers}) add_library(c SHARED ${photon_libc_sources} ${photon_libc_headers})
target_compile_options(c PRIVATE -ffreestanding -nostdlib -nostdinc) target_compile_options(c PRIVATE -ffreestanding -nostdlib -nostdinc)
target_link_libraries(c crt) target_link_libraries(c crt)