[Ecls-list] creating standalone static exectuables?

Goffioul Michael goffioul at imec.be
Fri Aug 11 07:45:09 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"))

Why do you use "-shared" argument? You compiled ECL without shared
support, so there's no ECL shared lib. Did you try without that


More information about the ecl-devel mailing list