-
Notifications
You must be signed in to change notification settings - Fork 9
Build and Install
This library uses the cmake build system (at least version 2.8) for Makefile generation and testing.
For example to generate a build-directory with cmake type:
mkdir build
cd build
cmake ..
Now you are ready to build and test the library:
make
ctest
| Option | Default | Explanation |
|---|---|---|
| USE_STACKCLEAN | On | cleanup stack to remove sensible data from memory |
| BUILD_STATIC | On | build static library as well (some tests depend on this) |
| BUILD_TESTING | On | build selftests (run these with ctest, see above) |
| BITNESS | auto | use 32 to force 32bit optimization and 64 for 64bit |
For example if you want to force 32bit optimization and turn off stack-cleaning use this cmake-call inside your build directory (see above):
cmake -DUSE_STACKCLEAN=off -DBITNESS=32 ..
To install the library under /usr/local use
make install
as super-user. The usual DESTDIR parameter is supported to change the default destination.
At the moment the 64bit optimization of this code does not build under Microsofts Visual Studio, because it does not support 128bit integers. You could use BITNESS=32 to force 32bit optimization as a workaround.
Please note: This problem is only in building the library not using it. You could compile this project with gcc or clang into a DLL and use this in Visual Studio without problems.