From 8532d16e3dd0d84bfa7bb9147eb42fa9dbbc6342 Mon Sep 17 00:00:00 2001 From: Mike Sperber Date: Wed, 29 Apr 2020 17:27:21 +0200 Subject: [PATCH] openexr, imlbase: unbreak on macOS With the default configuration, the libraries are generated with a -2_4.24.dylib suffix, and linking with -l...-2_4 doesn't work. Pass the configure option to turn off the suffix. --- pkgs/development/libraries/ilmbase/default.nix | 3 +++ pkgs/development/libraries/openexr/default.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkgs/development/libraries/ilmbase/default.nix b/pkgs/development/libraries/ilmbase/default.nix index 4ea16a59e8b4..0244725177e6 100644 --- a/pkgs/development/libraries/ilmbase/default.nix +++ b/pkgs/development/libraries/ilmbase/default.nix @@ -18,6 +18,9 @@ stdenv.mkDerivation rec { ./bootstrap ''; + # otherwise, the pkgconfig info for the libraries will not match the filenames + configureFlags = stdenv.lib.optionalString stdenv.isDarwin "--enable-namespaceversioning=no"; + depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ automake autoconf libtool which ]; diff --git a/pkgs/development/libraries/openexr/default.nix b/pkgs/development/libraries/openexr/default.nix index da8fb4294650..81a5ab1db992 100644 --- a/pkgs/development/libraries/openexr/default.nix +++ b/pkgs/development/libraries/openexr/default.nix @@ -42,6 +42,9 @@ stdenv.mkDerivation rec { ./bootstrap ''; + # otherwise, the pkgconfig info for the libraries will not match the filenames + configureFlags = stdenv.lib.optionalString stdenv.isDarwin "--enable-namespaceversioning=no"; + nativeBuildInputs = [ pkgconfig autoconf automake libtool ]; propagatedBuildInputs = [ ilmbase zlib ];