chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] [5] csc -static is overly static


From: felix . winkelmann
Subject: Re: [Chicken-hackers] [PATCH] [5] csc -static is overly static
Date: Thu, 19 Oct 2017 15:00:36 +0200

> Hi Felix,
>
> On 2017-10-18 10:23, address@hidden wrote:
> >@@ -597,7 +597,6 @@ EOF
> >             (set! objc-mode #t) ]
> >            [(-static)
> >             (set! translate-options (cons "-static" translate-options))
> >-            (set! link-options (cons "-static" link-options))
> >             (set! static #t)]
>
> Unless I'm mistaken this will cause "csc -static" to stop producing
> static executables. I think I probably don't understand the motivation
> for this change, could you elaborate?

The old -static passed it on to gcc, which will then link all libs statically
(including libc). But what we really want is to link static eggs and 
libchicken.a,
thus removing dependencies on the chicken runtime libs.

Linking libc statically creates huge executables (and the static glibc stills
seems to load code at runtime...). Folks who really want totally static 
executables
should do the sane thing and use musl for this. Alternatively one can still
do "-L -static".


felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]