llvm: Add support for grsecurity

+20 -1
+9
pkgs/development/compilers/llvm/3.3/llvm.nix
··· 22 22 23 23 cmakeFlags = with stdenv; [ 24 24 "-DCMAKE_BUILD_TYPE=Release" 25 + "-DLLVM_BUILD_TESTS=ON" 25 26 "-DLLVM_ENABLE_FFI=ON" 26 27 "-DLLVM_BINUTILS_INCDIR=${binutils}/include" 27 28 "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=R600" # for mesa 28 29 ] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON"; 30 + 31 + postBuild = '' 32 + paxmark m bin/{lli,llvm-rtdyld} 33 + 34 + paxmark m unittests/ExecutionEngine/JIT/JITTests 35 + paxmark m unittests/ExecutionEngine/MCJIT/MCJITTests 36 + paxmark m unittests/Support/SupportTests 37 + ''; 29 38 30 39 enableParallelBuilding = true; 31 40
+11 -1
pkgs/development/compilers/llvm/3.4/llvm.nix
··· 35 35 mkdir -p $out/ 36 36 ln -sv $PWD/lib $out 37 37 ''; 38 - postBuild = "rm -fR $out"; 39 38 40 39 cmakeFlags = with stdenv; [ 41 40 "-DCMAKE_BUILD_TYPE=Release" 41 + "-DLLVM_BUILD_TESTS=ON" 42 42 "-DLLVM_ENABLE_FFI=ON" 43 43 "-DLLVM_BINUTILS_INCDIR=${binutils}/include" 44 44 "-DCMAKE_CXX_FLAGS=-std=c++11" 45 45 ] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON"; 46 + 47 + postBuild = '' 48 + rm -fR $out 49 + 50 + paxmark m bin/{lli,llvm-rtdyld} 51 + 52 + paxmark m unittests/ExecutionEngine/JIT/JITTests 53 + paxmark m unittests/ExecutionEngine/MCJIT/MCJITTests 54 + paxmark m unittests/Support/SupportTests 55 + ''; 46 56 47 57 enableParallelBuilding = true; 48 58