Thanks Matthew. My use case is trying to get binaries into a container for deployment.
I've compiled it on ubuntu 19:10, and am running into this problem on ubuntu:latest (18.04), due to the different versions of libc. If I run on ubuntu:19.10, it works as expected, but that's too brittle for my liking. I'm keen find a way to statically-link libc, in the way that gcc, rust, go etc can do it. On Thursday, 2 April 2020 13:16:23 UTC+1, Matthew Flatt wrote: > > Those ".so"s are OS-supplied dynamic libraries, and I think there's no > way to link to them statically. Of course, the resulting executable > will only work on a sufficiently compatible variant of Linux. > > Are you seeing a specific problem when moving the executable among > machines? If so, what are the different Linux distributions on each > end? > > At Thu, 2 Apr 2020 01:51:54 -0700 (PDT), Tristram Oaten wrote: > > Hi friends. > > > > raco exe makes dynamic executables, and raco distribute doesn't change > that: > > > > $ ldd ./tst > > linux-vdso.so.1 (0x00007ffc9ed46000) > > libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 > > (0x00007fbeb4c09000) > > libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbeb4a18000) > > /lib64/ld-linux-x86-64.so.2 (0x00007fbeb4c67000) > > > > On windows, it looks like one can --embed-dlls, which is kindof what I > > want, but for all platforms. > > > > I'd like to compile statically for ease of distribution and deployment. > Is > > this possible? > > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/34ebeeab-3fd5-48d2-b739-ffd5362154d8%40googlegroups.com.

