Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: xunxun on November 26, 2010, 11:38:39 am

Title: MinGW gcc 4.5.2svn with 4.6 LTO patch
Post 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)
Title: Re: MinGW gcc 4.5.2svn with 4.6 LTO patch
Post by: wangdong1226 on March 20, 2011, 01:29:20 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)

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
Title: Re: MinGW gcc 4.5.2svn with 4.6 LTO patch
Post by: xunxun on March 20, 2011, 09:02:01 am
The config script seems right.
Have you tried my edition? My edition hasn't the problem.