summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2016-05-24 14:14:10 +0300
committerChan Lee <chan45.lee@samsung.com>2016-09-07 16:09:24 +0900
commit392d41b94022dda57b201f3851c2a6334a2f5568 (patch)
treebc41e8220b7055a600f18da743302cebd7278d01
parentca3f89223374249cf3ed18dcfcbab0d04d2a495f (diff)
downloadgpg2-accepted/tizen_common.tar.gz
gpg2-accepted/tizen_common.tar.bz2
gpg2-accepted/tizen_common.zip
Change-Id: Ibc6e7aebba1bc2c2057a3bceb5c305509d4a043c Signed-off-by: Chan Lee <chan45.lee@samsung.com>
-rw-r--r--packaging/gpg2.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/gpg2.spec b/packaging/gpg2.spec
index 1c2f5a7..5456f6d 100644
--- a/packaging/gpg2.spec
+++ b/packaging/gpg2.spec
@@ -35,10 +35,14 @@ gpg-agent, and a keybox library.
cp %{SOURCE1001} .
%build
+%if 0%{?asan}
+%restore_fcommon
+export LIBS+=" -ldl "
+%endif
%autogen
# build PIEs (position independent executables) for address space randomisation:
PIE="-fpie"
-export CFLAGS="%{optflags} ${PIE}"
+export CFLAGS="%{optflags} ${PIE} "
export LDFLAGS=-pie
%configure \
--libexecdir=%{_libdir} \