asan: fix build error on ASAN environment 49/267949/1 accepted/tizen/6.5/unified/20211214.124640 submit/tizen_6.5/20211214.012541
authorINSUN PYO <insun.pyo@samsung.com>
Mon, 13 Dec 2021 04:39:17 +0000 (13:39 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Tue, 14 Dec 2021 01:23:43 +0000 (01:23 +0000)
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
(cherry picked from commit ec1618acfde8a3f90e329f609ee9b0b1e8438ed6)

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")