Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: xunxun on November 26, 2010, 11:38:39 am
-
I have compiled the mingw gcc 4.5.2svn with gcc 4.6 LTO patch, and that means, we can compile many projects with LTO optimization, such as wxWidgets or Qt.
Welcome to download.
static gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2static_snapshots.7z (http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2static_snapshots.7z)
shared gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z (http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z)
-
I have compiled the mingw gcc 4.5.2svn with gcc 4.6 LTO patch, and that means, we can compile many projects with LTO optimization, such as wxWidgets or Qt.
Welcome to download.
static gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2static_snapshots.7z (http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2static_snapshots.7z)
shared gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z (http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z)
how to make config file when build wxWidgets and using LTO ?
like this?
mingw32-make -f makefile.gcc CXXFLAGS="-enable-auto-import -O2 -pipe -mthreads -fvisibility=hidden -fvisibility-inlines-hidden -flto" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--copy-dt-needed-entries -Wl,-enable-auto-import -Wl,-flto -s" SHARED=1 BUILD=release UNICODE=1 DEBUG_INFO=0 DEBUG_FLAG=0 MONOLITHIC=1 USE_STC=0 USE_PROPGRID=1 USE_EXCEPTIONS=0 USE_RTTI=0 OFFICIAL_BUILD=1 RUNTIME_LIBS=static
-
The config script seems right.
Have you tried my edition? My edition hasn't the problem.