diff --git a/llvm.spec b/llvm.spec index 6e055ec..4255d3b 100644 --- a/llvm.spec +++ b/llvm.spec @@ -271,6 +271,9 @@ mv %{cmake_srcdir} cmake %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif +# Copy CFLAGS into ASMFLAGS, so -fcf-protection is used when compiling assembly files. +export ASMFLAGS=$CFLAGS + # force off shared libs as cmake macros turns it on. %cmake -G Ninja \ -DBUILD_SHARED_LIBS:BOOL=OFF \