forked from mirrors/nixpkgs
udftools: fix gcc5 build
-fgnu89-inline was insufficient, revert to -std=gnu90 See https://hydra.nixos.org/build/33103604/nixlog/1/raw Also fix various undefined reference errors by ad-hoc patching
This commit is contained in:
parent
29c3314fe4
commit
c13ddd14bd
|
@ -10,9 +10,15 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ncurses readline ];
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-std=gnu90";
|
||||
|
||||
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
|
||||
sed -e '27i#include <string.h>' -i include/udf_endian.h
|
||||
sed -e '38i#include <string.h>' -i wrudf/wrudf-cdrw.c
|
||||
sed -e '12i#include <string.h>' -i wrudf/wrudf-cdr.c
|
||||
sed -e '37i#include <stdlib.h>' -i wrudf/ide-pc.c
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue