avatar
mikhailnov has added 07663a730f
Explicitly link with libcrypto

/usr/lib64/softhsm/libsofthsm2.so: undefined symbol: EC_KEY_free

softhsm-2.5.0/src/lib/crypto/OSSLUtil.cpp:59: undefined reference to `BN_bin2bn'
collect2: error: ld returned 1 exit status

... ... --- a/softhsm.spec
... ... +++ b/softhsm.spec
... ... @@ -67,6 +67,8 @@ The devel package contains the libsofthsm include files.
67 67
%apply_patches
68 68
69 69
%build
70
# Fix linking errors and runtime/dlopen undefinied symbols
71
%global optflags %{optflags} -lcrypto
70 72
%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
71 73
    -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
72 74
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \

Comments