summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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