svn trunk doesn't build again

Chris Shoemaker c.shoemaker at cox.net
Fri Jan 20 10:15:22 EST 2006


On Fri, Jan 20, 2006 at 02:23:40PM +0530, Ganesan Rajagopal wrote:
> 
> I need the following patch to get the test programs to link correctly.
> 
> ===================================================================
> --- src/gnome-utils/test/Makefile.am    (revision 12909)
> +++ src/gnome-utils/test/Makefile.am    (working copy)
> @@ -46,11 +46,13 @@
>  test_gnc_recurrence_SOURCES=test-gnc-recurrence.c
>  test_gnc_recurrence_LDADD = ${GNOME_LIBS} \
>    ${top_builddir}/src/app-utils/libgncmod-app-utils.la \
> -  ${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la
> +  ${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \
> +  ${top_builddir}/src/engine/libgncmod-engine.la
>  
>  test_gnc_dialog_LDADD = ${GNOME_LIBS} \
>    ${top_builddir}/src/app-utils/libgncmod-app-utils.la \
> -  ${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la
> +  ${top_builddir}/src/gnome-utils/libgncmod-gnome-utils.la \
> +  ${top_builddir}/src/engine/libgncmod-engine.la
>  
>  test_link_module_SOURCES=test-link-module.c
>  test_link_module_LDADD= \
> ===================================================================

Applied.   Thanks.

Now I'm curious.  What did you do to notice this?  

I don't really understand how it works, but when I say:

[src/gnome-utils/test/]$  /bin/sh ../../../libtool --tag=CC --mode=link \
  gcc -g -o test-gnc-dialog  test-gnc-dialog.o -Wl,--export-dynamic \
  ../../../src/gnome-utils/libgncmod-gnome-utils.la

It links with src/engine/.libs/libgncmod-engine.so even without this
patch.  (and many other .so libraries that aren't referenced directly.)

I presume this is either because libgncmod-gnome-utils.la lists
src/engine/libgncmod-engine.la in the "dependency_libs" variable, or
because it's in the "relink_command" variable.

Either way, I want to learn: when can I count on this libtool magic
and when can't I?

-chris


More information about the gnucash-devel mailing list