1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

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 = '' preConfigure = ''
sed -i 's, -std=gnu99,,g' configure sed -i 's, -std=gnu99,,g' configure
sed -i 's,malloc.h,stdlib.h,g' src-ILU/ilur/ilur.c 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 = '' postConfigure = ''