Patch for creating static library

Signed-off-by: Bathtor <bathtor@googlemail.com>
Added parameter for configuring lsm_log path

Signed-off-by: Bathtor <bathtor@googlemail.com>