Re: static builds

2020-12-21 Thread Peter Bex
On Mon, Dec 21, 2020 at 12:24:10PM +0100, Henrik Holst wrote:
> Hi Community
> 
> I am trying to build a static build using the Chicken Scheme compiler.  Is
> it possible to do?

Hi Henrik,

This is possible indeed.  The -static option will only statically
link CHICKEN libraries and extensions (as the manual says).

If you want to link fully statically you can add "-L -static" to
make your intentions known to the OS linker, as well.

Cheers,
Peter


signature.asc
Description: PGP signature


static builds

2020-12-21 Thread Henrik Holst
Hi Community

I am trying to build a static build using the Chicken Scheme compiler.  Is
it possible to do?

The man page for the Chicken Scheme compiler says:

 -static-libs
 Link with static CHICKEN libraries and extensions.

I am using Ubuntu 20.04 and Chicken Scheme (there is no csc --version)
5.1.0-1

om@hholst-lt:~$ cat test.scm
(display "Hello, world!")
(newline)
om@hholst-lt:~$ csc -static-libs test.scm
csc: invalid option `-static-libs'
om@hholst-lt:~$ csc -static test.scm
om@hholst-lt:~$ file test
test: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically
linked, interpreter /lib64/ld-linux-x86-64.so.2,
BuildID[sha1]=404130f56845a6f350956e258c5b836d7bad692b, for GNU/Linux
3.2.0, with debug_info, not stripped
om@hholst-lt:~$

Henrik Holst