Tarantool static build ability
A possibility to build tarantool with included library dependencies. Use the flag -DBUILD_STATIC=ON to build statically against curl, readline, ncurses, icu and z. Use the flag -DOPENSSL_USE_STATIC_LIBS=ON to build with static openssl Changes: * Add FindOpenSSL.cmake because some distributions do not support the use of openssl static libraries. * Find libssl before curl because of build dependency. * Catch all bundled libraries API and export then it in case of static build. * Rename crc32 internal functions to avoid a name clash with linked libraries. Notes: * Bundled libyaml is not properly exported, use the system one. * Dockerfile to build static with docker is included Fixes #3445
Showing
- CMakeLists.txt 34 additions, 26 deletionsCMakeLists.txt
- Dockerfile.staticbuild 90 additions, 0 deletionsDockerfile.staticbuild
- cmake/BuildMisc.cmake 10 additions, 0 deletionscmake/BuildMisc.cmake
- cmake/FindCURL.cmake 20 additions, 2 deletionscmake/FindCURL.cmake
- cmake/FindICU.cmake 19 additions, 3 deletionscmake/FindICU.cmake
- cmake/FindLibYAML.cmake 7 additions, 1 deletioncmake/FindLibYAML.cmake
- cmake/FindOpenSSL.cmake 291 additions, 0 deletionscmake/FindOpenSSL.cmake
- cmake/FindReadline.cmake 25 additions, 9 deletionscmake/FindReadline.cmake
- cmake/FindTermcap.cmake 7 additions, 1 deletioncmake/FindTermcap.cmake
- cmake/FindZSTD.cmake 6 additions, 1 deletioncmake/FindZSTD.cmake
- cmake/compiler.cmake 29 additions, 13 deletionscmake/compiler.cmake
- extra/mkexports 13 additions, 1 deletionextra/mkexports
- src/CMakeLists.txt 39 additions, 9 deletionssrc/CMakeLists.txt
- third_party/crc32.c 3 additions, 3 deletionsthird_party/crc32.c
- third_party/crc32.h 4 additions, 2 deletionsthird_party/crc32.h
Loading
Please register or sign in to comment