Lately, the number of questions about how to build Percona
software has been increased. More and more people try to add
their own patches, add some modifications, and build software by
themselves. But this raises the question of how to do this in the
same way as Percona does, as sometimes the compiler flag can make
a drastic impact on the final binary.
First of all, let’s talk about the stages of compiling
software.
I would say that at the beginning you need to prepare the build
environment, install all the needed dependencies, and so on. For
each version, the dependency list would be different. How do you
get the correct dependency list? You can get all build
requirements from the spec file (on rpm-based systems) or from
the control file( on deb-based systems).
The next stage is to get the source code of Percona …
[Read more]