Hello Stephen e.g. gnat gpl2014 installed into /usr
cd /usr/gnat/lib/gcc/x86_64-pc-linux-gnu/4.7.4/ cp rts-sjlj rts-sjlj-pic rm adainclude adalib ln -s rts-sjlj-pic/adalib adalib ln -s rts-sjlj-pic/adainclude adainclude cd rts-sjlj-pic chmod +w * make -f Makefile.adalib ROOT=/usr/gnat CFLAGS='-fPIC' Best regards Evgeniy Turishev On 21.05.2015 19:21, Stephen Leake wrote:
I've got an Emacs module (which is a dynamic library with a defined interface) that implements an OpenToken parser for Ada mode. It works on Windows, where it is marginally faster than the elisp parser. I have already identified some significant speedups to implement in the parser; that will break compatibility with OpenToken, so I'll be renaming it FastToken :). But the point of this post is to ask for help/advice for Linux (and possibly Mac). The module doesn't compile on Linux, because GNAT GPL 2014 doesn't provide a (static or dynamic) libgnat for the sjlj runtime that is compiled with -fPIC. I need -fPIC on all code in order to include it in the dynamic library that is the Emacs module. I need the sjlj runtime to support raising exceptions in the module; since Emacs is not an Ada main, it uses the sjlj exception method. I haven't tested yet, but I'm assuming Debian Ada doesn't provide -fPIC with sjlj either. So it looks like I have to compile the GNAT runtime on Linux (Debian in particular, for my test machine). Anyone have any other suggestions? Is there a similar problem on the Mac?
_______________________________________________ Emacs-ada-mode mailing list [email protected] http://host114.hostmonster.com/mailman/listinfo/emacs-ada-mode_stephe-leake.org
