Merge pull request #265493 from wegank/jxrlib-clang-16

jxrlib: fix build with clang 16
This commit is contained in:
OTABI Tomoya
2023-11-05 11:23:43 +09:00
committed by GitHub
2 changed files with 9 additions and 0 deletions
@@ -32,6 +32,10 @@ stdenv.mkDerivation rec {
strictDeps = true;
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
};
meta = with lib; {
description = "Implementation of the JPEG XR image codec standard";
homepage = "https://jxrlib.codeplex.com";
@@ -38,6 +38,11 @@ buildPythonPackage rec {
--replace 'ctypes.CDLL(libname)' 'np.ctypeslib.load_library("libfreeimage", "${freeimage}/lib")'
'';
# mahotas/_morph.cpp:864:10: error: no member named 'random_shuffle' in namespace 'std'
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-std=c++14";
};
# tests must be run in the build directory
preCheck = ''
cd build/lib*