summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Merinov <n.merinov@samsung.com>2019-02-13 13:45:52 +0300
committerNikolai Merinov <n.merinov@samsung.com>2019-02-13 14:11:44 +0300
commit62563f639a6a5335e12320d10f698f26b3287de0 (patch)
tree3f0097a1f6c2cc9cf9fa9d37589f68e12d344c5c
parent364e5466325f844023853965e09273eb892a1abd (diff)
downloadkey-manager-ta-sandbox/nmerinov/llvm.tar.gz
key-manager-ta-sandbox/nmerinov/llvm.tar.bz2
key-manager-ta-sandbox/nmerinov/llvm.zip
Disable clang specific warning ; provide path to stddef.h for compilationsandbox/nmerinov/llvm
-rw-r--r--packaging/key-manager-ta.spec6
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/key-manager-ta.spec b/packaging/key-manager-ta.spec
index aa99bf4..9c3dc4c 100644
--- a/packaging/key-manager-ta.spec
+++ b/packaging/key-manager-ta.spec
@@ -73,7 +73,11 @@ cp -a %{SOURCE1} .
cp -a %{SOURCE2} .
%build
-
+if echo "$CC" | grep -q clang ; then
+ # For stddef.h
+ CC+=" -idirafter %{_libdir}/clang/5.0.2/include"
+fi
+CFLAGS+=" -Wno-newline-eof -Wno-gnu-folding-constant -Wno-unused-command-line-argument"
%if 0%{?secret_ta_key_delivery_method:1}
/bin/bash -c %{secret_ta_key_delivery_method}
%endif