optipng: Workaround for issue 28106.

This commit is contained in:
Moritz Ulrich 2017-08-16 10:25:02 +02:00
parent 0c1c3d2b99
commit 9fab349ef5
No known key found for this signature in database
GPG Key ID: 45833CACBC407FA7

View File

@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
buildInputs = [ libpng ]; buildInputs = [ libpng ];
LDFLAGS = optional static "-static"; LDFLAGS = optional static "-static";
# Workaround for crash in cexcept.h. See
# https://github.com/NixOS/nixpkgs/issues/28106
preConfigure = ''
export LD=$CC
'';
configureFlags = [ configureFlags = [
"--with-system-zlib" "--with-system-zlib"
"--with-system-libpng" "--with-system-libpng"