[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dedicated search path variable for architecture-dependant loadable file
From: |
Zhu Zihao |
Subject: |
Dedicated search path variable for architecture-dependant loadable file |
Date: |
Fri, 15 Jan 2021 19:00:43 +0800 |
User-agent: |
mu4e 1.4.14; emacs 27.1 |
Hi, Emacs hackers!
Recently I'm working with a Emacs project that contains a dynamic module
written in Rust.
In order to use "require" to load the dynamic module in Lisp file. I
have to ensure the compiled library in the "load-path" variable. Usually
it was placed under the same directory of other Lisp files.
It's OK for me. But it's not an idiomatic way in distribution packaging.
For distrbution packaged Elisp packages, Lisp files usually placed at
<prefix>/share/emacs/site-lisp. In FHS spec
(https://www.pathname.com/fhs/pub/fhs-2.3.html), <prefix>/share should
only contains architecture-independant files, and obviously dynamic
library is not the case. They should be placed under <prefix>/lib.
My suggestion is add a new `native-load-path` Lisp variable and
`EMACSNATIVELOADPATH` environment variable to enable a dedicated search
path for native files.
Looking for your comments :)
--
Retrieve my PGP public key:
gpg --recv-keys D47A9C8B2AE3905B563D9135BE42B352A9F6821F
Zihao
signature.asc
Description: PGP signature
- Dedicated search path variable for architecture-dependant loadable file,
Zhu Zihao <=