From 1a28fbf5add8310727e9595138b6e8ba3a859e4a Mon Sep 17 00:00:00 2001 From: Kyle Schwarz Date: Fri, 15 Jul 2022 12:34:07 -0400 Subject: [PATCH] ThirdParty: FatFs: Enable PIC Fixes linking with GCC by adding -fPIC --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b69a0c5..afccb2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -277,6 +277,7 @@ endif() # fatfs add_subdirectory(third-party/fatfs) +set_property(TARGET fatfs PROPERTY POSITION_INDEPENDENT_CODE ON) target_link_libraries(icsneocpp PRIVATE fatfs) # libftdi