2

I'm trying to compile a very simple ADA code. Everything works like a charm but on one computer my executable is link dynamically to libgnat whereas on the other computer it's linked statically. In both cases I use gnatmake tool.

Any idea why it's happening? Do you know a way to force GNAT to dynamically link libraries?

Rafal
  • 91
  • 1
  • 7

1 Answers1

3

That would be the binder's -shared switch. If you are using project files, you can use:

project Foo is
    ...
    package Binder is
       for Switches ("Ada") use ("-shared");
    end Binder;

end Foo;

manuBriot
  • 2,755
  • 13
  • 21