unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Why does guile put -lgc into the linker flags?
@ 2024-10-05 12:07 Tomas Volf
  2024-10-07  1:47 ` Nala Ginrut
  0 siblings, 1 reply; 2+ messages in thread
From: Tomas Volf @ 2024-10-05 12:07 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]


Hello,

this might be obvious to some, but I am curious why guile puts -lgc to
the linker flags:

--8<---------------cut here---------------start------------->8---
$ guile-config link
-L/gnu/store/mfkz7fvlfpv3ppwbkv0imb19nrf95akf-guile-3.0.9/lib -L/gnu/store/pr73chdirm3jc2j7npc6hqzmcwjs7l8m-libgc-8.2.4/lib -lguile-3.0 -lgc -lpthread -ldl
--8<---------------cut here---------------end--------------->8---

Why is it necessary?  My guile extension interacts only with the
libguile, no?  Even the GC-related functions are called via their scm_
interface, I am never directly interacting with the Boehm GC.  I even
thought that the fact that Boehm GC is used is an implementation detail,
not an ABI thing.

I would have thought that just libguile linking with the libgc is
enough, but I am far from expert in this area.  So I would appreciate if
someone could enlighten me.

(I am not sure about the -lpthread and -ldl neither, but the -lgc is the
one that caused me some problems, so I am asking about that one.)

Thanks and have a nice day,
Tomas

PS: So once we switch to whippet, all extensions will need to be rebuilt
due to linking against -lgc, which will no longer be Guile's dependency?
So I guess .so version bump will be used for that?

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 853 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-10-07  1:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 12:07 Why does guile put -lgc into the linker flags? Tomas Volf
2024-10-07  1:47 ` Nala Ginrut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).