Add -pthread to LDFLAGS for ASan build submit/tizen/20170608.074627
authorSlava Barinov <v.barinov@samsung.com>
Fri, 26 May 2017 10:07:45 +0000 (13:07 +0300)
committerDongsun Lee <ds73.lee@samsung.com>
Thu, 8 Jun 2017 07:17:05 +0000 (16:17 +0900)
Change-Id: If9400099404dc5e66d1bfce5e3d0250dfee34154
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/krb5.spec

index ab6bac0..f15972c 100644 (file)
@@ -65,7 +65,7 @@ cp %{SOURCE1001} .
 # needs to be re-generated
 rm -f src/lib/krb5/krb/deltat.c
 cd src
-LDFLAGS+=" -ldl "
+%{?asan:LDFLAGS+=" -ldl -pthread "}
 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fno-strict-aliasing -D_GNU_SOURCE -fPIC -fgnu89-inline " \
 ./configure \
        --host=%{_host} --build=%{_build} \