[gtkada] configure --libdir setting is not acknowledge properly in the build system

Emmanuel Briot briot at adacore.com
Wed Apr 4 12:02:09 CEST 2012


> I saw the changes on svn that it still install the lib under prefix/lib for
> compatibility reason. A manual change of configure file is needed if I insist to
> install elsewhere. ^_^  It is hard to say which is right or wrong, but it is
> your call.

Right, we partially reverted my change to force the use of /lib instead of 
/lib64, although at least now it is easier to get to the latter.


>  Anyway, it still has some hard-coded value if I changed the
> configure file:

Thanks for the patch, which has now been applied to the development version. I 
also found a few cases where DESTDIR was not properly taken into account, and 
these are also fixed.

>  >The GNAT project files are always installed in prefix/lib, otherwise GNAT
>  >doesn't know where to find them.
> I haven't play around this yet, but suppose it is install somewhere else, there
> should be a switch to tell the tools where to find the project files, right?

Sure, use the environment variable ADA_PROJECT_PATH. But prefix/lib is the 
default and does not require user to change anything else on their setup, so is 
more convenient.

> If I just use the configure: ./configure --prefix=/usr/gnat. It builds both
> static and share libraries, but gtkada-config defaults to static build, and no
> option for the shared version. If with "--enable-shared", then it defaults to
> shared version and has the static option to choose from.

Right, it has been our experience in the past that linking with the static 
libraries by default gives in general less surprises to users, hence the choice. 
Please use --enable-shared if you know enough about shared libraries and want to 
use them by default.

> I think it is better if gtkada-config have the corresponding option present
> (--static /--shared) when static or shared libraries are build.

We will discuss this, indeed.

Thanks for the patch again.

Emmanuel


More information about the gtkada mailing list