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

Qun-Ying zhu.qunying at gmail.com
Tue Apr 3 20:14:37 CEST 2012


Sorry, I don't know why I don't  get mail from the list (or still swimming
outside to reach my mail box) and have to look through the mailing archive.
The reply may not go into proper thread.

>Well spotted, this has now been fixed in the development version of GtkAda.
>In particular, lib64 is now automatically used by default on 64 bits
systems,
>but you can also use --libdir as you did above.

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.  Anyway, it still has some hard-coded value if
I changed the configure file:
projects/gtkada_install_dynamic.gpr.in and projects/
gtkada_install_dynamic_gl.gpr.in still hard coded the library path to be
../../lib/gtkada


>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?

>gtkada-config uses shared libs by default if they were build. Perhaps you
are
>missing a --enable-shared switch to configure (or perhaps that's because
as you
>pointed out gtkada-config is looking in lib64, but the install was in lib.

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.

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


--
Qun-Ying
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/gtkada/attachments/20120403/c62eafb4/attachment.htm 


More information about the gtkada mailing list