v8, openbabel: fixup build with gcc12
This commit is contained in:
@@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "sha256-wQpgdfCyBAoh4pmj9j7wPTlMtraJ62w/EShxi/olVMY=";
|
sha256 = "sha256-wQpgdfCyBAoh4pmj9j7wPTlMtraJ62w/EShxi/olVMY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed '1i#include <ctime>' -i include/openbabel/obutil.h # gcc12
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ zlib libxml2 eigen python cairo pcre swig rapidjson ];
|
buildInputs = [ zlib libxml2 eigen python cairo pcre swig rapidjson ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config ];
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ stdenv.mkDerivation rec {
|
|||||||
--replace "-Wl,-fatal_warnings" ""
|
--replace "-Wl,-fatal_warnings" ""
|
||||||
''}
|
''}
|
||||||
touch build/config/gclient_args.gni
|
touch build/config/gclient_args.gni
|
||||||
|
sed '1i#include <utility>' -i src/heap/cppgc/prefinalizer-handler.h # gcc12
|
||||||
'';
|
'';
|
||||||
|
|
||||||
llvmCcAndBintools = symlinkJoin { name = "llvmCcAndBintools"; paths = [ stdenv.cc llvmPackages.llvm ]; };
|
llvmCcAndBintools = symlinkJoin { name = "llvmCcAndBintools"; paths = [ stdenv.cc llvmPackages.llvm ]; };
|
||||||
|
|||||||
Reference in New Issue
Block a user