[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] missing info in the models tarballs.

From: al davis
Subject: Re: [Gnucap-devel] missing info in the models tarballs.
Date: Sun, 25 Feb 2007 00:43:00 -0500
User-agent: KMail/1.9.5

On Saturday 24 February 2007 14:09, al davis wrote:
> On Saturday 24 February 2007 03:43, David Fang wrote:
> > I strongly recommend
> > GNU libtool -- it works like magic; 
> Go for it.   I have not used it.  I agree that it is needed.  
> What you see now is a temporary hack to get something out.

I decided to try it ..  That is play with it to compile a 

It consists of a couple of shell scripts, and some other files 
which are essentially a database of all of the things that need 

It has a reasonably good interface, only slightly more 
complicated than just compiling on a single known system.

1. Compile:
libtool --mode=compile g++ -c

2. Link:
libtool --mode=link g++ c_list.lo -o -rpath /tmp

Now the .so file is hiding in the directory ".libs".

Contrast, without it, but only on a system I know:
(1 step version)
g++ -fPIC -DPIC -shared  -o
or (2 step version):
g++ -fPIC -DPIC -c
g++ -shared  -o c_list.o

Libtool really does this:
g++ -c  -fPIC -DPIC -o .libs/c_list.o
g++ -shared   .libs/c_list.o  -lstdc++ -lm -lc -lgcc_s   -Wl,-soname 
-Wl, -o .libs/
.. and some other stuff that is almost harmless but not 
....  essentially the same, but with a few "-l" to load some 
libraries.  These are not necessary, but harmless.

I say "almost" harmless because it does take some space.

So far, looks good.

Looking deeper .....

There are some problems:

1. It definitely DOES create a run-time dependency.  If we use 
it in this manner, you will need libtool installed to fully run 

Some relief ...  such dependency is only there if you want to 
use source plugins.

2. The libtool tarball is about 3 MB. about 3 times the size of 
the gnucap basic tarball. (core + enough plugins to be useful)
It contains lots of stuff for lots of systems.

What would be nice is a "libtool-light" that does just the two 
features needed here, and has the database organized in such a 
way that it is easy to select and install only the one needed.

The best design of a "libtool-light" is probably 20 or 
so "Make2" files.,or actually not the whole thing, just a few 
defines.  Only one would need to be installed, one small file.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]