llvm: Add support for grsecurity

+20 -1
+9
pkgs/development/compilers/llvm/3.3/llvm.nix
··· 22 23 cmakeFlags = with stdenv; [ 24 "-DCMAKE_BUILD_TYPE=Release" 25 "-DLLVM_ENABLE_FFI=ON" 26 "-DLLVM_BINUTILS_INCDIR=${binutils}/include" 27 "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=R600" # for mesa 28 ] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON"; 29 30 enableParallelBuilding = true; 31
··· 22 23 cmakeFlags = with stdenv; [ 24 "-DCMAKE_BUILD_TYPE=Release" 25 + "-DLLVM_BUILD_TESTS=ON" 26 "-DLLVM_ENABLE_FFI=ON" 27 "-DLLVM_BINUTILS_INCDIR=${binutils}/include" 28 "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=R600" # for mesa 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 + ''; 38 39 enableParallelBuilding = true; 40
+11 -1
pkgs/development/compilers/llvm/3.4/llvm.nix
··· 35 mkdir -p $out/ 36 ln -sv $PWD/lib $out 37 ''; 38 - postBuild = "rm -fR $out"; 39 40 cmakeFlags = with stdenv; [ 41 "-DCMAKE_BUILD_TYPE=Release" 42 "-DLLVM_ENABLE_FFI=ON" 43 "-DLLVM_BINUTILS_INCDIR=${binutils}/include" 44 "-DCMAKE_CXX_FLAGS=-std=c++11" 45 ] ++ stdenv.lib.optional (!isDarwin) "-DBUILD_SHARED_LIBS=ON"; 46 47 enableParallelBuilding = true; 48
··· 35 mkdir -p $out/ 36 ln -sv $PWD/lib $out 37 ''; 38 39 cmakeFlags = with stdenv; [ 40 "-DCMAKE_BUILD_TYPE=Release" 41 + "-DLLVM_BUILD_TESTS=ON" 42 "-DLLVM_ENABLE_FFI=ON" 43 "-DLLVM_BINUTILS_INCDIR=${binutils}/include" 44 "-DCMAKE_CXX_FLAGS=-std=c++11" 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 + ''; 56 57 enableParallelBuilding = true; 58