News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

MinGW gcc 4.5.2svn with 4.6 LTO patch

Started by xunxun, November 26, 2010, 11:38:39 AM

Previous topic - Next topic

xunxun

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
shared gcc edition : http://pcxprj.googlecode.com/files/MinGW_win32_gcc4.5.2shared_snapshots.7z
Regards,
xunxun

wangdong1226

Quote from: xunxun1982 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
shared gcc edition : 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

xunxun

The config script seems right.
Have you tried my edition? My edition hasn't the problem.
Regards,
xunxun