Prechádzať zdrojové kódy

Added -s linker option for slightly smaller exes.

Mark Sibly 8 rokov pred
rodič
commit
349be0a2a0
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      bin/env_windows.txt

+ 3 - 3
bin/env_windows.txt

@@ -26,17 +26,17 @@ MX2_GCC_TOOLS_WINDOWS=${MX2_HOME}\devtools\i686-5.3.0-posix-dwarf-rt_v4-rev0\min
 'Linker options
 MX2_LD_OPTS_WINDOWS=-static -m32
 MX2_LD_OPTS_WINDOWS_DEBUG=
-MX2_LD_OPTS_WINDOWS_RELEASE=-O3 ' -Wl,--gc-sections 
+MX2_LD_OPTS_WINDOWS_RELEASE=-s -O3 '-Wl,--gc-sections 
 
 'C Compiler options
 MX2_CC_OPTS_WINDOWS=-std=gnu99 -m32
 MX2_CC_OPTS_WINDOWS_DEBUG=
-MX2_CC_OPTS_WINDOWS_RELEASE=-O3 -DNDEBUG ' -fdata-sections -ffunction-sections
+MX2_CC_OPTS_WINDOWS_RELEASE=-O3 -DNDEBUG '-fdata-sections -ffunction-sections
 
 'C++ Compiler options
 MX2_CPP_OPTS_WINDOWS=-std=c++11 -m32
 MX2_CPP_OPTS_WINDOWS_DEBUG=
-MX2_CPP_OPTS_WINDOWS_RELEASE=-O3 -DNDEBUG ' -fvtable-gc -fdata-sections -ffunction-sections
+MX2_CPP_OPTS_WINDOWS_RELEASE=-O3 -DNDEBUG '-fvtable-gc -fdata-sections -ffunction-sections
 
 
 '***** EMSCRIPTEN/WASM *****