Hello All,

in my MELT branch http://gcc.gnu.org/wiki/MiddleEndLispTranslator I need to compile a C file into a shared object library which can be loaded by lt_dlopenext

First, I have the impression that the libtool in e.g. libjava/Makefile.in or libgomp/Makefile.in or libmudflap/Makefile.in is not the usual one (I mean the Debian/Sid libtool package version 1.5.26-1 for example). I would like to use this tool to compile some (generated) warm(basilys.c file into a warm-basilys.la in the most portable way (on Linux/ELF systems I would just use gcc -fPIC -shared warm-basilys.c -o warm-basilys.so and use the warm-basilys.so shared library to dlopen).

What is exactly the $(LIBTOOL) in Makefile.in-s (i.e; the @LIBTOOL@ from some autoconf stuff)?

What is the right way to produce a dynamically loadable "library" which would be the most portable?

Regards
--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

Reply via email to