On Fri, Jan 13, 2006 at 03:02:09PM -0500, Chris Shoemaker wrote:
> Aacck!  Why are we hard-coding a ".la" module suffix?  Do we not trust
> GModule to find the right library?  But, that's probably not the
> _real_ problem...

The glib documentation claims that this works (and it does for me).

> I have a pretty good idea what's happening here.  I hadn't taken a
> look at QOF's module loading mechanism before today, but that is
> basically the problem.
...
> QOF uses a compile-time path
> (QOF_LIB_DIR) to find libraries.

This part of the analysis is true.

The problem is (for me) that, while QOF_LIB_DIR is defined properly
(all Makefiles contain "QOF_LIB_DIR = /home/wiz/gctest//lib"),
it is not passed to the compiler. The attached diff fixes the problem
for me.

Cheers,
 Thomas
Index: src/engine/Makefile.am
===================================================================
--- src/engine/Makefile.am      (revision 12339)
+++ src/engine/Makefile.am      (working copy)
@@ -10,6 +10,7 @@
        -I${top_srcdir}/src/gnc-module \
        -I${top_srcdir}/src/business/business-core/ \
        ${QOF_CFLAGS} \
+       -DQOF_LIB_DIR=\"${QOF_LIB_DIR}\" \
        ${GNUCASH_ENGINE_CFLAGS}
 
 libgncmod_engine_la_SOURCES = \
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to