Upstream is not exporting some symbols when building a dynamic library, which leads to linking errors on Windows platforms. This PR sets the vendor to build memory as a static library with position independent code as default, letting the user configure both BUILD_SHARED_LIBS and CMAKE_POSITION_INDEPENDENT_CODE as CMake options. Once memory is ready to be built as a DLL, then we can consider changing the default value for BUILD_SHARED_LIBS
Upstream is not exporting some symbols when building a dynamic library, which leads to linking errors on Windows platforms. This PR sets the vendor to build
memory
as a static library with position independent code as default, letting the user configure bothBUILD_SHARED_LIBS
andCMAKE_POSITION_INDEPENDENT_CODE
as CMake options. Oncememory
is ready to be built as a DLL, then we can consider changing the default value forBUILD_SHARED_LIBS