On Tue, Nov 14, 2023 at 10:38:03PM +0800, Qian Yun wrote:
> As you can see in this patch, building CMUCL was different because:
> 
> 1. It has to load "libspad.so" before it can define FFI functions.
> 2. After "libspad.so" is loaded, we can't unload it, and saved image
> will automatically load it during startup before anything else.
> 
> The problem it caused: loadpath of libspad.so is hardcoded inside
> binary, so FRICASsys can only run at build directory and designated
> install directory.  Moving its install location will cause failure to
> boot.
> 
> For the first issue, CLISP had similar problem. So the similar solution
> "cmu-init-foreign-calls" delays FFI functions definition to be after
> the loading libspad.so.
> 
> For the second issue, we prevent loading of libspad.so in
> "build-interpsys", aka  we prevent loading of libspad.so in the
> creation of "interpsys" and "FRICASsys".
> 
> As a result, the build process of CMUCL is more like other Lisps.

OK, please commit.

-- 
                              Waldek Hebisch

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/ZVOI1/yIQ9onfey1%40fricas.org.

Reply via email to