chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Issue when linking statically


From: Evan Hanson
Subject: Re: [Chicken-users] Issue when linking statically
Date: Tue, 29 Jan 2019 09:28:20 +1300

Hi Jörg,

Rather than (csc-options ...) you might try (linkage static):

  http://wiki.call-cc.org/man/5/Egg%20specification%20format#linkage

Evan

On 2019-01-28 14:07, Jörg F. Wittenberger wrote:
> Hi all,
> 
> trying link a CHICKEN 5 program against the openssl egg fails badly for me.
> 
> In the egg file I have openssl among the dependencies and
> (component-options
>  (csc-options -static -v )
>  (link-options
>   -L "-pthread -l:libssl.a -l:libcrypto.a"
>   ))
> 
> This links successfully, but when the resulting executable is started with
> -:d I see:
> 
> ; loading /home/u/chickens/5.0.0/lib/chicken/9/openssl.import.so ...
> [debug] entering openssl...
> 
> which looks as if I have to ship the file - which would be bad.
> 
> In fact I have another module, which I wrote, which too does not like to be
> linked statically. So in fact I wonder what could have gone wrong.
> 
> Thanks so much
> 
> /Jörg
> 
> 
> 
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/chicken-users



reply via email to

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