From 1e331d58f277d0af44e72a542a141e08f8b361f6 Mon Sep 17 00:00:00 2001 From: Gonzha Dmitriy Evgenevich Date: Wed, 3 May 2017 12:58:25 +0300 Subject: [PATCH] Fix build with ASan Change-Id: I2afba860b8d83b565b4f5ce4b50acf149f48acf2 --- packaging/strongswan.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/strongswan.spec b/packaging/strongswan.spec index 9d2c18f..6230d33 100755 --- a/packaging/strongswan.spec +++ b/packaging/strongswan.spec @@ -32,7 +32,7 @@ cp -a %{SOURCE1001} . #cd strongswan-%{version} export CFLAGS="${CFLAGS} -fPIE" -export LDFLAGS="${LDFLAGS} -pie" +export LDFLAGS="${LDFLAGS} -pie %{?asan:-lpthread}" %configure --libexecdir=%{_bindir} --with-ipsecdir=%{_bindir} --with-ipseclibdir=%{_libdir} --with-strongswan-conf=%{_sysconfdir}/strongswan.conf --enable-monolithic --enable-unity --disable-gmp --disable-pki --disable-stroke --disable-swanctl -- 2.7.4