Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


MySQL Internals Manual  /  ...  /  Packager-Friendly Build Options (Unix)

4.4.6.7 Packager-Friendly Build Options (Unix)

MySQL source distribution contains sources for zlib (compression library), yaSSL (ssl library), libedit, and (in MySQL 5.5 only) readline. MySQL can be compiled using either libraries available on the system or, to minimize external dependencies, with bundled sources. For Unix/Linux packagers, using system libraries is a more natural option and CMake has support for that, using the following options:

On Linux, --Wl,--as-needed link options can also be used to remove unused dependencies. Although the CMake build tries to avoid unneeded dependencies, --as-needed produces better results. For example, it removes unused dependencies on libgcc_s.so.

--Wl,--no-undefined cannot be used at the moment if plugins are built because plugins have direct dependency (use symbols) exported by MySQL server.


User Comments
Sign Up Login You must be logged in to post a comment.