Merge #309606: libdevil: fix compilation on Darwin with clang

This commit is contained in:
Vladimír Čunát 2024-05-08 06:58:10 +02:00
commit e533219102
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ stdenv.mkDerivation (finalAttrs: {
configureFlags = [ "--enable-ILU" "--enable-ILUT" ];
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-Wno-register";
preConfigure = ''
sed -i 's, -std=gnu99,,g' configure
sed -i 's,malloc.h,stdlib.h,g' src-ILU/ilur/ilur.c