asan: fix build error on ASAN environment 98/267898/3 accepted/tizen/unified/20211214.124800 submit/tizen/20211214.012522
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 13 Dec 2021 04:39:17 +0000 (13:39 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Tue, 14 Dec 2021 00:37:25 +0000 (09:37 +0900)
Normal build : -lgmodule-2.0 -pthread -lglib-2.0  -lcrypt  -ltzplatform-config-2.0
ASAN build   : -lgmodule-2.0 -pthread -lglib-2.0  -l  -ltzplatform-config-2.0

Ref: https://github.com/linux-pam/linux-pam/commit/01e0038fa55581c4afc9d63b6180d2ea77ba2940

Change-Id: Ia73ef164f9b08d209171d44df54de2f69a414dd8

configure.ac

index ca7ae70..ad8db2a 100644 (file)
@@ -53,7 +53,7 @@ AC_SUBST(TZ_PLATFORM_CONFIG_CFLAGS)
 AC_SUBST(TZ_PLATFORM_CONFIG_LIBS)
 
 # Crypt library.
-AC_SEARCH_LIBS([crypt],[crypt], CRYPT_LIB="-l$ac_lib", CRYPT_LIB="")
+AC_SEARCH_LIBS([crypt],[crypt], CRYPT_LIB="-lcrypt", CRYPT_LIB="")
 AC_SUBST(CRYPT_LIB)
 if test "x$CRYPT_LIB" = "x" ; then
     AC_MSG_ERROR("CRYPT Library is required")