From f68140420f4df63af619b197c407069cc1467609 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 18 Sep 2020 16:43:19 +0100 Subject: [PATCH] libc is now built with -fPIC --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2befd62..caa2093 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,7 @@ add_framework(Photon STATIC SOURCES ${photon_libc_sources} ${photon_libc_headers} HEADERS ${CMAKE_CURRENT_BINARY_DIR}/sysroot/usr/include/*) -bundle_compile_options(Photon PRIVATE -ffreestanding -nostdlib) +bundle_compile_options(Photon PRIVATE -ffreestanding -nostdlib -fPIC) bundle_link_libraries(Photon ${photon_platform_libs}) bundle_link_frameworks(Photon ${photon_platform_frameworks})