udftools: fix compiling with gcc5 and turn off fortify

This commit is contained in:
Robin Gloster
2016-02-07 23:41:22 +00:00
parent 0c5b86b607
commit 801b80299c
2 changed files with 20 additions and 0 deletions
@@ -10,6 +10,9 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses readline ];
patches = [ ./gcc5.patch ];
hardening_fortify = false;
preConfigure = ''
sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c
sed -e 's@[(]char[*][)]spm [+]=@spm = ((char*) spm) + @' -i wrudf/wrudf.c