Switch -ldl to support ASan build 53/88253/4 accepted/tizen/unified/20170706.193611 submit/tizen/20170705.123628
authorSlava Barinov <v.barinov@samsung.com>
Thu, 15 Sep 2016 12:58:18 +0000 (15:58 +0300)
committerSeungbae Shin <seungbae.shin@samsung.com>
Wed, 5 Jul 2017 11:00:14 +0000 (11:00 +0000)
Change-Id: I046e37e2cbdb349cd8cef6df5191c7d5193cfe06
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/pulseaudio.spec

index 74a40ee..aa9bab0 100644 (file)
@@ -197,7 +197,7 @@ cp src/daemon/systemd/system/pulseaudio-tv.service.in src/daemon/systemd/system/
 %endif
 
 %build
-export CFLAGS="%{optflags} -fno-strict-aliasing -D__TIZEN__ -D__TIZEN_BT__ -D__TIZEN_LOG__ -DBLUETOOTH_APTX_SUPPORT"
+export CFLAGS="%{optflags} -fno-strict-aliasing -D__TIZEN__ -D__TIZEN_BT__ -D__TIZEN_LOG__ -DBLUETOOTH_APTX_SUPPORT %{?asan:-ldl }"
 %if 0%{?sec_build_binary_debug_enable}
 export CFLAGS+=" -DTIZEN_DEBUG_ENABLE"
 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"