]> sigrok.org Git - pulseview.git/commitdiff
Fix for cross-compiling for Windows using mingw MXE.
authorxorloser <redacted>
Wed, 9 Sep 2020 10:44:59 +0000 (20:44 +1000)
committerUwe Hermann <redacted>
Mon, 28 Sep 2020 20:31:41 +0000 (22:31 +0200)
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.

CMakeLists.txt

index 160a0c0a984b585c580913960506eef82b622d16..04920a6cbeec9a1456fee8656a81c390a687a0b7 100644 (file)
@@ -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)