guile-devel
[Top][All Lists]
Advanced

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

Re: Static linking of Guile extensions


From: Ludovic Courtès
Subject: Re: Static linking of Guile extensions
Date: Fri, 08 Sep 2017 15:22:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)

Hi Maxim,

Maxim Cournoyer <address@hidden> skribis:

> scheme@(guile-user)> (use-modules (ice-9 readline))
> While compiling expression:
> ERROR: In procedure dynamic-link: file: "libguilereadline-v-18", message: 
> "file not found"

You could patch Guile to link guile-readline/*.lo into libguile-2.2.la
(which would make it GPLv3+)

In addition, you’d need to remove

  (load-extension …)

from (ice-9 readline), and instead export ‘scm_init_readline’ to Scheme
using SCM_DEFINE, and have (ice-9 readline) call it.

A bit of hack, but something along these lines should work.

Ludo’.




reply via email to

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