Unverified Commit 43f93315 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

jemalloc: cross compile (#395996)

parents 14921643 d19326f7
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -50,14 +50,14 @@ stdenv.mkDerivation rec {
    automake
  ];

  preConfigure =
    ''
      ./autogen.sh
    ''
    + lib.optionalString stdenv.hostPlatform.isDarwin ''
  preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
    export LDFLAGS="$LDFLAGS -Wl,-no_uuid -Wl,-install_name,@rpath/libjemalloc.2.dylib";
  '';

  # TODO: switch to autoreconfHook when updating beyond 5.3.0
  # https://github.com/jemalloc/jemalloc/issues/2346
  configureScript = "./autogen.sh";

  configureFlags =
    [
      "--with-version=${version}-0-g0000000000000000000000000000000000000000"