Select Git revision
Georgy Kirichenko
authored and
Kirill Yukhin
committed
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
crc32.h 255 B
#ifndef __BSD_CRC32_H_
#define __BSD_CRC32_H_
#include <stdint.h>
#define crc32 tnt_crc32
uint32_t tnt_crc32(const void *buf, size_t size);
#define crc32c tnt_crc32c
uint32_t tnt_crc32c(uint32_t crc32c, const char *buffer, unsigned int length);
#endif