← Back to team overview

maria-discuss team mailing list archive

Re: LTO build fails likely because -static-libgcc

 



On 1/21/2017 6:23 PM, Reindl Harald wrote:


Am 21.01.2017 um 06:59 schrieb Reindl Harald:
why does MariaDB use "-g -static-libgcc" in "mysql_release.cmake" and so
besides override -g0 break -flto builds?

I think you might be misunderstanding the purpose of mysql_release.cmake
it is there to simplify the build of release packages, for us. If you want to build exactly like our release package are build, use

cmake  <path-to-source> -DBUILD_CONFIG=mysql_release
make package

If you want something special, do not use it.

cmake <path-to-source>
make package

This provides a good baseline (builds with RelWithDebInfo build type, i.e optimized with debug info)
you can add your flags on top of that.



Follow ups

References