mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
libdevil: fix build in clang stdenvs
This commit is contained in:
parent
6d25c0f1b3
commit
2455dac320
|
@ -23,6 +23,8 @@ stdenv.mkDerivation rec {
|
|||
preConfigure = ''
|
||||
sed -i 's, -std=gnu99,,g' configure
|
||||
sed -i 's,malloc.h,stdlib.h,g' src-ILU/ilur/ilur.c
|
||||
'' + stdenv.lib.optionalString stdenv.cc.isClang ''
|
||||
sed -i 's/libIL_la_CXXFLAGS = $(AM_CFLAGS)/libIL_la_CXXFLAGS =/g' lib/Makefile.in
|
||||
'';
|
||||
|
||||
postConfigure = ''
|
||||
|
|
Loading…
Reference in a new issue