Compiling the VM statically

Samir Saidani saidani at info.unicaen.fr
Wed Sep 21 19:09:38 UTC 2005


Hi Lukas,

I dig into this problem a little, and I'm not sure that it is possible
: the vm-xxxx architecture seems to prevent such a thing, maybe we
have to modify the Makefile ? Moreover, I tried to generate a vm with
internal plugin, and it seems (but maybe I'm wrong) that it is
different to generate the vm with the plugin compiled statically. I
have the impression that the Makefile should be modified to achieve
such a thing. Maybe Ian Piumarta could help. Anyway if you manage to
compile squeak statically, I'm really interested !

Regards,
Samir

Lukas Renggli <renggli at gmail.com> writes:

> Hi,
>
> I am trying to compile the Squeak 3.7 VM on Unix statically, so that
> it doesn't require any external libraries: all plugins and external
> libraries (libc, libm, ...) should be linked into the resulting binary
> itself.
>
> I tried:
>
>   export CFLAGS=-static
>   export LDFLAGS=-static
>   ../platforms/unix/config/configure --enable-static
>   make
>
> However I get:
>
>   bash:~//Squeak-3.7-7/build# ldd squeak
>   libutil.so.1 => /lib/tls/libutil.so.1 (0xb7fdf000)
>   libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fdb000)
>   libm.so.6 => /lib/tls/libm.so.6 (0xb7fb9000)
>   libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7fa5000)
>   libc.so.6 => /lib/tls/libc.so.6 (0xb7e70000)
>   /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)
>
> What am I missing?
>
> Thanks for any hints,
> Lukas
>
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch



More information about the Squeak-dev mailing list