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?
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;
来源:https://stackoverflow.com/questions/26167386/dynamically-link-libgnat