@@ -4,8 +4,8 @@
44# then stops downstream builds (mariadb in particular) from detecting it. This
55# option should remove the prefix and give us a working jemalloc.
66# Causes segfaults with some software (ex. rustc), but defaults to true for backward
7−# compatibility. Ignored on non OSX.
8−, stripPrefix ? true
7+# compatibility.
8+, stripPrefix ? stdenv.hostPlatform.isDarwin
99, disableInitExecTls ? false
1010}:
1111
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
2222
2323 # see the comment on stripPrefix
2424 configureFlags = []
25− ++ optional (stdenv.isDarwin && stripPrefix) [ "--with-jemalloc-prefix=" ]
26− ++ optional disableInitExecTls [ "--disable-initial-exec-tls" ]
25+ ++ optional stripPrefix "--with-jemalloc-prefix="
26+ ++ optional disableInitExecTls "--disable-initial-exec-tls"
2727 ;
2828
2929 doCheck = true;