Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: don't link everything against libgcrypt
Use AM_PATH_LIBGCRYPT instead of AC_CHECK_LIB for checking libgcrypt, with doesn't add -lgcrypt to the globac $LIBS. Fixes: #1365 Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
- Loading branch information
3c98f73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tstruk
running a ./configure currently leads to:
it gets solved by removing line 141 - which seems introduced with this commit...
Just in case someone has the same issue...
Cheers,
Matthias
3c98f73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the report, but please see https://github.com/tpm2-software/tpm2-tss/blob/master/INSTALL.md#gnulinux
and the note about AM_PATH_LIBGCRYPT. Looks like you are missing the libgcrypt-dev dependency.
3c98f73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually I installed libgcrypt-dev via apt on my debian 10 (libgcrypt20-dev/stable 1.8.4-5 amd64), as well as I've compiled (and installed) version 1.6.0 from https://gnupg.org/ftp/gcrypt/libgcrypt/ - the issue persisted...
3c98f73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3c98f73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are so right - rerunning ./bootstrap after install libgcrypt-dev solves the issue.
Case closed :) and THANKS!