-
Notifications
You must be signed in to change notification settings - Fork 228
Compiling w mbedtls
For older versions, change "-lpolarssl" to "-lmbedtls" in src/Makefile.
For more recent versions, either run:
make -e SSLIB=mbedtls, or change "SSLIB = polarssl" to "SSLIB = mbedtls" in src/Makefile.
Take note when compiling dislocker with mbedtls libraries pre-installed it may or must require a change in the cmake configuration for mbedtls, followed by a recompilation and re-installation obviously.
[ change ] in file CMakeLists append "-fPIC" to the CMAKE_C_FLAGS_... line for the GNUCC or CLANG, do this for the default CMAKE_C_FLAGS and the CMAKE_C_FLAGS_RELEASE at minimum, append for other options as applicable.
Compiling dislocker should now not throw any errors such as below.
/usr/bin/ld.bfd.real: /usr/local/lib/libmbedtls.a(aes.c.o): relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libmbedtls.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libdislocker.so.0.4.1] Error 1