Skip to content

Commit e15e591

Browse files
committed
Disable -fPIC for microcontroller builds.
1 parent 535e437 commit e15e591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ else()
112112
endif()
113113

114114
# -fPIC is implied on MinGW...
115-
if(NOT WIN32)
115+
if((NOT WIN32) AND (NOT MICROCONTROLLER_BUILD))
116116
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
117117
endif()
118118

0 commit comments

Comments
 (0)