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: Jörg F . Wittenberger
Subject: Re: [Chicken-users] Issue when linking statically
Date: 29 Jan 2019 10:51:24 +0100

On Jan 28 2019, Evan Hanson wrote:

Hi Jörg,

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

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

This claims "This property only makes sense for extension libraries." whereas the snippet came from the .egg file for the resulting program.

/Jörg


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]