guile-user
[Top][All Lists]
Advanced

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

what are conventions for foreign libraries via guix


From: Daniel Skinner
Subject: what are conventions for foreign libraries via guix
Date: Mon, 27 Nov 2023 17:56:18 -0600

Hi all,

I'm new to guile/scheme and wanted to play with ffi. I'm using guile
through guix on foreign distro and strictly only interested in libraries
installed via guix; what's the recommended way to load .so files?

For example, if I install guile and glfw via guix and attempt to use
foreign-library-function, then this fails unless I set
LD_LIBRARY_PATH=$LIBRARY_PATH where $LIBRARY_PATH was set by guix profile.

But I want to export something global for login shell which may have mixed
environment (being a foreign distro) for the sake of emacs and geiser so
was looking at GUILE_EXTENSIONS_PATH but it seemed like that's more
appropriate for per project settings that might bundle a compilable
extension?

Just wondering what people normally do as I was sort of just expecting
guile via guix to automatically find libs installed via guix.

Thanks,
Daniel


reply via email to

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