Skip to content

Commit

Permalink
Merge pull request #61 from gktrk/pkcs11-lcrypto-fix
Browse files Browse the repository at this point in the history
Make rngd_pkcs11.c explicitly link against -lcrypto
  • Loading branch information
nhorman authored Jun 5, 2019
2 parents aabc8c7 + 1c7939f commit 42ad1ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ if JITTER
rngd_SOURCES += rngd_jitter.c
endif

rngd_LDADD = librngd.a -lsysfs $(LIBS) ${libp11_LIBS} ${libcurl_LIBS} ${libxml2_LIBS} ${openssl_LIBS} $(PTHREAD_LIBS)
rngd_LDADD = librngd.a -lsysfs $(LIBS) ${libp11_LIBS} ${libcrypto_LIBS} ${libcurl_LIBS} ${libxml2_LIBS} ${openssl_LIBS} $(PTHREAD_LIBS)

if PKCS11
rngd_SOURCES += rngd_pkcs11.c
endif

rngd_CFLAGS = ${pkcs11_CFLAGS} ${libp11_CFLAGS} ${libxml2_CFLAGS} ${openssl_CFLAGS} $(PTHREAD_CFLAGS)
rngd_CFLAGS = ${pkcs11_CFLAGS} ${libp11_CFLAGS} ${libcrypto_CFLAGS} ${libxml2_CFLAGS} ${openssl_CFLAGS} $(PTHREAD_CFLAGS)
rngd_LDFLAGS = $(PTHREAD_CFLAGS)

rngtest_SOURCES = exits.h stats.h stats.c rngtest.c
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ AS_IF(
[ test "x$with_pkcs11" != "xno"],
[
PKG_CHECK_MODULES([libp11], [libp11], [], [AC_MSG_ERROR([libp11 is required])])
PKG_CHECK_MODULES([libcrypto], [libcrypto], [], [AC_MSG_ERROR([libcrypto is required])])
AC_DEFINE([HAVE_PKCS11],1,[Enable PKCS11])
]
)
Expand Down

0 comments on commit 42ad1ba

Please sign in to comment.