From 1f0df5f21fa038eb27e1a02ed47141d2d6fa214f Mon Sep 17 00:00:00 2001 From: Dan Peebles Date: Sun, 14 Aug 2016 14:14:11 -0400 Subject: [PATCH] jemalloc: remove symbol prefix on darwin The default darwin build added a je_ prefix to all exported symbols, and that broke downstream consumers that were not expecting the prefix, like mariadb. --- pkgs/development/libraries/jemalloc/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/jemalloc/default.nix b/pkgs/development/libraries/jemalloc/default.nix index 9b54ce482394..a332487d4edf 100644 --- a/pkgs/development/libraries/jemalloc/default.nix +++ b/pkgs/development/libraries/jemalloc/default.nix @@ -8,6 +8,11 @@ stdenv.mkDerivation rec { sha256 = "1bmdr51wxiir595k2r6z9a7rcgm42kkgnr586xir7vdcndr3pwf8"; }; + # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which + # then stops downstream builds (mariadb in particular) from detecting it. This + # option should remove the prefix and give us a working jemalloc. + configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix="; + meta = with stdenv.lib; { homepage = http://www.canonware.com/jemalloc/index.html; description = "General purpose malloc(3) implementation";