From: xorloser Date: Wed, 9 Sep 2020 10:44:59 +0000 (+1000) Subject: Fix for cross-compiling for Windows using mingw MXE. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0ac6b18f9e5f20b680915a4771b0da3cc86dca31;p=pulseview.git Fix for cross-compiling for Windows using mingw MXE. The -mbig-obj param fixes a 'too many sections for PE file' error. The -O3 param fixes a 'section or string table size too large for PE file' error. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 160a0c0a..04920a6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -465,6 +465,8 @@ add_definitions(-D__STDC_LIMIT_MACROS) add_definitions(-Wall -Wextra) add_definitions(-std=c++11) add_definitions(-DBOOST_MATH_DISABLE_FLOAT128=1) +add_definitions(-Wa,-mbig-obj) +add_definitions(-O3) if(ENABLE_FLOW) add_definitions(-DENABLE_FLOW)