[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] Fix dynamic imports of libraries which are
From: |
felix . winkelmann |
Subject: |
Re: [Chicken-hackers] [PATCH] Fix dynamic imports of libraries which are missing in statically compiled programs |
Date: |
Fri, 27 Apr 2018 21:36:23 +0200 |
> Hi all,
>
> While looking into #1437, I noticed another bug:
>
> $ cat test.scm
> (print (eval '(begin (import srfi-1) (assoc 'a '((a . 1)) eq?))))
> $ csc -static test.scm
> $ ./test
> Error: during expansion of (import ...) - call of non-procedure: #f
>
> After applying this patch:
>
> $ csc -static test.scm
> $ ./test
> Error: (load) during expansion of (import ...) - unable to load compiled
> module - cannot load compiled code dynamically - this is a statically linked
> executable: "/home/sjamaan/chickens/test-5/lib/chicken/9/srfi-1.import.so"
Pushed.
felix