libdevil: fix build in clang stdenvs

This commit is contained in:
Jude Taylor 2015-11-25 10:09:52 -08:00 committed by John Wiegley
parent 6d25c0f1b3
commit 2455dac320

View File

@ -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 = ''