blob: 37a1945c15a359048096fceea001748cc3ceb66e [file] [log] [blame]
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -80,4 +80,4 @@ endif
# Unseal library - for addition to existing apps, counter part of seal cmd
libtpm_unseal_la_SOURCES = tpm_unseal.c
libtpm_unseal_la_LDFLAGS = -shared -version-info 1:0:0
-libtpm_unseal_la_LIBADD = -ltspi libtpm_tspi.la
+libtpm_unseal_la_LIBADD = -ltspi libtpm_tspi.la -lcrypto
--- a/src/cmds/Makefile.am
+++ b/src/cmds/Makefile.am
@@ -33,4 +33,5 @@ endif
LDADD = $(top_builddir)/lib/libtpm_tspi.la -ltspi $(top_builddir)/lib/libtpm_unseal.la -ltpm_unseal
tpm_sealdata_SOURCES = tpm_sealdata.c
+tpm_sealdata_LDADD = $(LDADD) -lcrypto
tpm_unsealdata_SOURCES = tpm_unsealdata.c
--- tpm-tools-1.3.1/src/data_mgmt/Makefile.am
+++ tpm-tools-1.3.1/src/data_mgmt/Makefile.am
@@ -31,7 +31,7 @@ bin_PROGRAMS = tpmtoken_init \
# Common build flags
AM_CPPFLAGS = -I$(top_builddir)/include -D_LINUX
-LDADD = $(top_builddir)/lib/libtpm_pkcs11.la -ltspi
+LDADD = $(top_builddir)/lib/libtpm_pkcs11.la -ltspi -ldl
#