From 0bef3cdee45553034826c18d942ef239ca290836 Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Sun, 16 Feb 2020 01:49:04 +0800 Subject: [PATCH] Patch for MIPS64 Architecture --- .../SetGlobalCompilerAndLinkerSettings.cmake | 6 +++++- src/Mod/Inspection/App/InspectionFeature.cpp | 1 + src/Mod/Part/App/GeometryCurvePyImp.cpp | 1 + src/Mod/Part/App/Part2DObject.cpp | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake b/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake index 4f4ddd2527..e23686875a 100644 --- a/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake +++ b/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake @@ -13,7 +13,11 @@ macro(SetGlobalCompilerAndLinkerSettings) message(STATUS "Platform is 32-bit") endif(CMAKE_SIZEOF_VOID_P EQUAL 8) - + # check for mips64 platform + if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "mips64") + message(STATUS "Architecture: mips64") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mxgot") + endif() if(MSVC) # set default compiler settings diff --git a/src/Mod/Inspection/App/InspectionFeature.cpp b/src/Mod/Inspection/App/InspectionFeature.cpp index f25ca00e83..e23119c926 100644 --- a/src/Mod/Inspection/App/InspectionFeature.cpp +++ b/src/Mod/Inspection/App/InspectionFeature.cpp @@ -22,6 +22,7 @@ #include "PreCompiled.h" +#include #include #include #include diff --git a/src/Mod/Part/App/GeometryCurvePyImp.cpp b/src/Mod/Part/App/GeometryCurvePyImp.cpp index b06fa71153..91e88967a3 100644 --- a/src/Mod/Part/App/GeometryCurvePyImp.cpp +++ b/src/Mod/Part/App/GeometryCurvePyImp.cpp @@ -54,6 +54,7 @@ # include # include # include +# include #endif #include diff --git a/src/Mod/Part/App/Part2DObject.cpp b/src/Mod/Part/App/Part2DObject.cpp index 2ca2fe7889..597503823e 100644 --- a/src/Mod/Part/App/Part2DObject.cpp +++ b/src/Mod/Part/App/Part2DObject.cpp @@ -37,6 +37,7 @@ # include # include # include +# include #endif #ifndef M_PI