Can't save in r12331

Thomas Klausner tk at giga.or.at
Fri Jan 13 16:45:06 EST 2006


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
-------------- next part --------------
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 = \


More information about the gnucash-devel mailing list