Static compile

Dmitry V. Levin ldv at
Tue Dec 11 06:23:57 UTC 2018


On Tue, Dec 11, 2018 at 06:11:00AM +0000, Ronneil Camara wrote:
> Hi,
> I'd like to compile strace statically link. The target server doesn't have all the libraries and make. How do I compile so I can make a binary that I can just copy to the target server?

Try to build with LDFLAGS='-static -pthread'.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <>

More information about the Strace-devel mailing list