diff --git a/CMakeLists.txt b/CMakeLists.txt index c624a9ed..8073871a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -417,7 +417,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL Clang) # common flags set(MY_C_FLAGS -pipe -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types) - if(NOT WIN32) + if(NOT (WIN32 OR X86_32)) # inline asm is not allowed with -fPIC set(MY_C_FLAGS ${MY_C_FLAGS} -fPIC) endif()