mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-28 06:33:36 +02:00
ima-evm-utils: link to libcrypto instead of OpenSSL
There is no need to link to full libssl. evmctl uses functions from libcrypto, so let's link only against that library. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
782224f33c
commit
b09a25690f
@ -24,9 +24,7 @@ LT_INIT
|
|||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
||||||
PKG_CHECK_MODULES(OPENSSL, [ openssl >= 0.9.8 ])
|
PKG_CHECK_MODULES(LIBCRYPTO, [libcrypto >= 0.9.8 ])
|
||||||
AC_SUBST(OPENSSL_CFLAGS)
|
|
||||||
AC_SUBST(OPENSSL_LIBS)
|
|
||||||
AC_SUBST(KERNEL_HEADERS)
|
AC_SUBST(KERNEL_HEADERS)
|
||||||
AC_CHECK_HEADER(unistd.h)
|
AC_CHECK_HEADER(unistd.h)
|
||||||
AC_CHECK_HEADERS(openssl/conf.h)
|
AC_CHECK_HEADERS(openssl/conf.h)
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
lib_LTLIBRARIES = libimaevm.la
|
lib_LTLIBRARIES = libimaevm.la
|
||||||
|
|
||||||
libimaevm_la_SOURCES = libimaevm.c
|
libimaevm_la_SOURCES = libimaevm.c
|
||||||
libimaevm_la_CPPFLAGS = $(OPENSSL_CFLAGS)
|
libimaevm_la_CPPFLAGS = $(LIBCRYPTO_CFLAGS)
|
||||||
# current[:revision[:age]]
|
# current[:revision[:age]]
|
||||||
# result: [current-age].age.revision
|
# result: [current-age].age.revision
|
||||||
libimaevm_la_LDFLAGS = -version-info 0:0:0
|
libimaevm_la_LDFLAGS = -version-info 0:0:0
|
||||||
libimaevm_la_LIBADD = $(OPENSSL_LIBS)
|
libimaevm_la_LIBADD = $(LIBCRYPTO_LIBS)
|
||||||
|
|
||||||
include_HEADERS = imaevm.h
|
include_HEADERS = imaevm.h
|
||||||
|
|
||||||
@ -17,12 +17,11 @@ hash_info.h: Makefile
|
|||||||
bin_PROGRAMS = evmctl
|
bin_PROGRAMS = evmctl
|
||||||
|
|
||||||
evmctl_SOURCES = evmctl.c
|
evmctl_SOURCES = evmctl.c
|
||||||
evmctl_CPPFLAGS = $(OPENSSL_CFLAGS)
|
evmctl_CPPFLAGS = $(LIBCRYPTO_CFLAGS)
|
||||||
evmctl_LDFLAGS = $(LDFLAGS_READLINE)
|
evmctl_LDFLAGS = $(LDFLAGS_READLINE)
|
||||||
evmctl_LDADD = $(OPENSSL_LIBS) -lkeyutils libimaevm.la
|
evmctl_LDADD = $(LIBCRYPTO_LIBS) -lkeyutils libimaevm.la
|
||||||
|
|
||||||
INCLUDES = -I$(top_srcdir) -include config.h
|
INCLUDES = -I$(top_srcdir) -include config.h
|
||||||
|
|
||||||
CLEANFILES = hash_info.h
|
CLEANFILES = hash_info.h
|
||||||
DISTCLEANFILES = @DISTCLEANFILES@
|
DISTCLEANFILES = @DISTCLEANFILES@
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user