diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 91009c02167e..b3bd289c5ade 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -89,6 +89,8 @@ let "link=${link}" "-sEXPAT_INCLUDE=${expat.dev}/include" "-sEXPAT_LIBPATH=${expat.out}/lib" + ] + ++ lib.optionals (lib.versionAtLeast version "1.85") [ ( # The stacktrace from exception feature causes memory leaks when built # with libc++. For all other standard library implementations, i.e. @@ -99,9 +101,8 @@ let else "define=BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK" ) - - # TODO: make this unconditional ] + # TODO: make this unconditional ++ lib.optionals (