Unverified Commit d19326f7 authored by Arnout Engelen's avatar Arnout Engelen
Browse files

jemalloc: fix cross-compilation

Follow-up on https://github.com/NixOS/nixpkgs/pull/393724

Not *sure* why this works, but following the lead of `jbig2dec`
parent 3e36efbd
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"