[Ecls-list] creating standalone static exectuables?
Tato M
egcb at burntmail.com
Thu Aug 10 20:39:58 UTC 2006
(I feel like a big idiot for asking.)
So I built ECL with a ./configure --disable-shared && make && make install, and have libecl.a and other static libraries in /usr/local/lib/ecl.
test.lisp has the example from the docs:
% cat test.lisp
(princ "Hello world!")
(terpri)
(quit)
So I compile and link with the -shared being passed to gcc:
% ecl
> (compile-file "test.lisp" :system-p t)
> (c:build-program "mytest" :lisp-files '("test.o") :ld-flags '("-shared"))
Yet the executable is still shared:
% ldd mytest
libecl.so => not found
libdl.so.2 => /lib/libdl.so.2 (0x00111000)
libm.so.6 => /lib/tls/libm.so.6 (0x004fb000)
libgmp.so.3 => /usr/lib/sse2/libgmp.so.3 (0x007a3000)
libc.so.6 => /lib/tls/libc.so.6 (0x00115000)
/lib/ld-linux.so.2 (0x00994000)
What am I doing wrong?
More information about the ecl-devel
mailing list