Fix macOS build

https://hydra.nixos.org/build/99500938
This commit is contained in:
Eelco Dolstra 2019-08-28 22:04:16 +02:00
parent 7ef2645f45
commit c128031492
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -74,8 +74,8 @@ let
mkdir -p $out/lib
cp -pd ${boost}/lib/{libboost_context*,libboost_thread*,libboost_system*} $out/lib
rm -f $out/lib/*.a
chmod u+w $out/lib/*.so.*
${lib.optionalString stdenv.isLinux ''
chmod u+w $out/lib/*.so.*
patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib $out/lib/libboost_thread.so.*
''}
'';