tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.02k stars 48 forks source link

`--static-modules` executable still has links to dynamic libraries #223

Closed tomhrr closed 1 year ago

tomhrr commented 1 year ago
$ cat test.dt
(def main
  (fn extern-c int (void)
    0))
$ dalec --static-modules test.dt
$ ldd a.out
        linux-vdso.so.1 (0x00007ffc4f1b7000)
        /usr/local/lib/dale/libarithmetic.so (0x00007f64a16f8000)
        /usr/local/lib/dale/libdrt.so (0x00007f64a16f3000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f64a15fa000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f64a1419000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f64a170a000)
$

See about removing the references to the Dale shared libraries.