about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-10-12 12:20:40 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-01-14 09:34:34 +0000
commit0121066f5f34701a4c404d04434083fb83f82942 (patch)
tree9f50cbad53fdf4c1c0b4d6da36c114888bd7810d /pkgs
parentbe759ba64e0048a46375a2b81dad0316f8abfa54 (diff)
downloadnixlib-0121066f5f34701a4c404d04434083fb83f82942.tar
nixlib-0121066f5f34701a4c404d04434083fb83f82942.tar.gz
nixlib-0121066f5f34701a4c404d04434083fb83f82942.tar.bz2
nixlib-0121066f5f34701a4c404d04434083fb83f82942.tar.lz
nixlib-0121066f5f34701a4c404d04434083fb83f82942.tar.xz
nixlib-0121066f5f34701a4c404d04434083fb83f82942.tar.zst
nixlib-0121066f5f34701a4c404d04434083fb83f82942.zip
camlidl: fix build with OCaml 4.03
 by making warning 31 non fatal
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/tools/ocaml/camlidl/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/tools/ocaml/camlidl/default.nix b/pkgs/development/tools/ocaml/camlidl/default.nix
index feedd8835485..780862b6727f 100644
--- a/pkgs/development/tools/ocaml/camlidl/default.nix
+++ b/pkgs/development/tools/ocaml/camlidl/default.nix
@@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
     substituteInPlace config/Makefile --replace BINDIR=/usr/local/bin BINDIR=$out
     substituteInPlace config/Makefile --replace OCAMLLIB=/usr/local/lib/ocaml OCAMLLIB=$out/lib/ocaml/${ocaml.version}/site-lib/camlidl
     substituteInPlace config/Makefile --replace CPP=/lib/cpp CPP=${stdenv.cc}/bin/cpp
+    substituteInPlace config/Makefile --replace "OCAMLC=ocamlc -g" "OCAMLC=ocamlc -g -warn-error -31"
     mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/camlidl/caml
   '';