[Nix-dev] Compile Haskell program on nixos that works on ubuntu server
Pascal Wittmann
PascalWittmann at gmx.net
Sat Jul 5 10:58:33 CEST 2014
On 07/05/2014 10:35 AM, Cody Goodman wrote:
> I'm guessing I could use patchelf to change all of these manually? Is
> there an easier way to statically link my binaries or am I doomed to
> having to patchelf each field from now on myself?
I have the same problem. My current solution is to use a script like
ldd-copy [1] to copy all shared libraries into a single folder and use
patchelf to refere to that folder.
ldd-copy homepage lib/
patchelf --set-rpath lib/ homepage
patchelf --set-interpreter lib/ld* homepage
This is realy ugly, but works for me and I don't have time to
investigate into a real solution.
Hope this helps.
[1] https://github.com/pSub/configs/blob/master/bin/ldd-copy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140705/c9b90d90/attachment.bin
More information about the nix-dev
mailing list