mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 09:19:36 +01:00
Use Boost's regex implementation instead of libstdc++'s
The latter runs in unbounded stack space so it crashes on large inputs. Fixes #4550.
This commit is contained in:
parent
6042febfce
commit
23a97b0079
4 changed files with 18 additions and 13 deletions
|
|
@ -135,7 +135,7 @@
|
|||
# Copy libboost_context so we don't get all of Boost in our closure.
|
||||
# https://github.com/NixOS/nixpkgs/issues/45462
|
||||
mkdir -p $out/lib
|
||||
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
|
||||
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*,libboost_regex*} $out/lib
|
||||
rm -f $out/lib/*.a
|
||||
${lib.optionalString stdenv.isLinux ''
|
||||
chmod u+w $out/lib/*.so.*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue