mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
boost: Don't store absolute path in #line
This causes packages to have boost.dev in their runtime closures, via assertion messages. Fixes #34462.
This commit is contained in:
parent
b1273f2453
commit
c08e4b9102
@ -144,7 +144,7 @@ stdenv.mkDerivation {
|
||||
|
||||
postFixup = ''
|
||||
# Make boost header paths relative so that they are not runtime dependencies
|
||||
find "$dev/include" \( -name '*.hpp' -or -name '*.h' -or -name '*.ipp' \) \
|
||||
cd "$dev" && find include \( -name '*.hpp' -or -name '*.h' -or -name '*.ipp' \) \
|
||||
-exec sed '1i#line 1 "{}"' -i '{}' \;
|
||||
'' + optionalString (hostPlatform.libc == "msvcrt") ''
|
||||
$RANLIB "$out/lib/"*.a
|
||||
|
Loading…
Reference in New Issue
Block a user