From: Gonzha Dmitriy Evgenevich Date: Mon, 24 Apr 2017 16:46:59 +0000 (+0300) Subject: Add library dependency required for ASan build X-Git-Tag: accepted/tizen/4.0/base/20170811.092854^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36229e277f4c3485f52e7e683d63fc13b99ea081;p=platform%2Fupstream%2Fsudo.git Add library dependency required for ASan build Change-Id: I2e64194f67754aac882dd4b44af4edaa9864fdd6 --- diff --git a/packaging/sudo.spec b/packaging/sudo.spec index 640c22e..50acd66 100644 --- a/packaging/sudo.spec +++ b/packaging/sudo.spec @@ -45,6 +45,7 @@ cp %{SOURCE1001} . F_PIE=-fpie export CFLAGS="%{optflags} -Wall $F_PIE -DLDAP_DEPRECATED" export LDFLAGS="-pie" +%{?asan:LDFLAGS+=" -ldl"} %configure \ --libexecdir=%{_libexecdir}/sudo \ --docdir=%{_docdir}/%{name} \