From 05a357678b603cd6d30cbedabfb981620b056eed Mon Sep 17 00:00:00 2001
From: Wenkai Lin <linwenkai6@hisilicon.com>
Date: Sat, 23 Jul 2022 16:50:35 +0800
Subject: [PATCH 168/183] uadk: fix lm not link problem

Some gcc version need user to assign -lm parameter.

Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 9782ed4..5856126 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -91,7 +91,7 @@ libwd_comp_la_DEPENDENCIES = libwd.la
 
 libhisi_zip_la_LIBADD = -ldl
 
-libwd_crypto_la_LIBADD = $(libwd_la_OBJECTS) -ldl -lnuma
+libwd_crypto_la_LIBADD = $(libwd_la_OBJECTS) -ldl -lnuma -lm
 libwd_crypto_la_DEPENDENCIES = libwd.la
 
 libhisi_sec_la_LIBADD = $(libwd_la_OBJECTS) $(libwd_crypto_la_OBJECTS)
@@ -110,7 +110,7 @@ libwd_comp_la_DEPENDENCIES= libwd.la
 libhisi_zip_la_LIBADD= -ldl
 libhisi_zip_la_LDFLAGS=$(UADK_VERSION)
 
-libwd_crypto_la_LIBADD= -lwd -ldl -lnuma
+libwd_crypto_la_LIBADD= -lwd -ldl -lnuma -lm
 libwd_crypto_la_LDFLAGS=$(UADK_VERSION)
 libwd_crypto_la_DEPENDENCIES= libwd.la
 
-- 
2.27.0

