diff -r 4791c9a7d5e8 -r 89acfded7722 CMakeLists.txt --- a/CMakeLists.txt Tue Nov 06 20:20:13 2018 +0300 +++ b/CMakeLists.txt Tue Nov 06 12:44:38 2018 -0500 @@ -69,6 +69,10 @@ set(target_library_install_dir "lib" CACHE PATH "install dest for libs") endif() +if("${CMAKE_SIZEOF_VOID_P}" EQUAL "4" AND UNIX AND NOT APPLE) + set(BUILD_ENGINE_C ON CACHE STRING "PAS2C force-enabled due to a freepascal 32 bit alignment bug" FORCE) +endif() + #system paths for finding required fonts (see share/hedgewars/Data/fonts) #subdirectories will NOT be searched. #all fonts that can't be found will be bundled with hedgewars