From 18ec97e0bbf8d24a71c2f9144c45c5acdb017882 Mon Sep 17 00:00:00 2001 From: Juergen Repp Date: Sat, 6 Jan 2024 09:33:30 +0100 Subject: [PATCH] Makefile.am add missing flags. Mssing UUID cand CRYPTO flags caused problems during cross compilation. Fixes #2743 Signed-off-by: Juergen Repp --- Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index e8e3279f1..9f76cf305 100644 --- a/Makefile.am +++ b/Makefile.am @@ -626,8 +626,9 @@ lib_LTLIBRARIES += $(libtss2_policy) pkgconfig_DATA += lib/tss2-policy.pc src_tss2_policy_libtss2_policy_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/tss2-policy -I$(srcdir)/src/tss2-fapi \ - $(JSONC_CFLAGS) -src_tss2_policy_libtss2_policy_la_LIBADD = $(libtss2_esys) $(libtss2_mu) $(libutil) $(JSONC_LIBS) $(UUID_LIBS) + $(JSONC_CFLAGS) $(UUID_CFLAGS) $(CRYPTO_CFLAGS) +src_tss2_policy_libtss2_policy_la_LIBADD = $(libtss2_esys) $(libtss2_mu) $(libutil) $(JSONC_LIBS) $(UUID_LIBS) \ + $(CRYPTO_LIBS) if HAVE_LD_VERSION_SCRIPT src_tss2_policy_libtss2_policy_la_LDFLAGS = -Wl,--version-script=$(srcdir)/lib/tss2-policy.map @@ -793,7 +794,8 @@ src_tss2_fapi_libtss2_fapi_la_LIBADD = $(libtss2_sys) $(libtss2_mu) $(libtss2_e $(libutil) $(libtss2_tctildr) src_tss2_fapi_libtss2_fapi_la_SOURCES = $(TSS2_FAPI_SRC) -src_tss2_fapi_libtss2_fapi_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/tss2-fapi $(CRYPTO_CFLAGS) $(JSONC_CFLAGS) $(CURL_CFLAGS) +src_tss2_fapi_libtss2_fapi_la_CFLAGS = $(AM_CFLAGS) -I$(srcdir)/src/tss2-fapi $(CRYPTO_CFLAGS) $(JSONC_CFLAGS) \ + $(UUID_CFLAGS) src_tss2_fapi_libtss2_fapi_la_LDFLAGS = $(AM_LDFLAGS) $(CRYPTO_LIBS) $(JSONC_LIBS) $(CURL_LIBS) $(UUID_LIBS) if HAVE_LD_VERSION_SCRIPT src_tss2_fapi_libtss2_fapi_la_LDFLAGS += -Wl,--version-script=$(srcdir)/lib/tss2-fapi.map