r18415 - gnucash/trunk/src - Bug #602069: Fix build on Solaris for different gmp header locations

Christian Stimming cstim at code.gnucash.org
Mon Nov 16 16:42:24 EST 2009


Author: cstim
Date: 2009-11-16 16:42:23 -0500 (Mon, 16 Nov 2009)
New Revision: 18415
Trac: http://svn.gnucash.org/trac/changeset/18415

Modified:
   gnucash/trunk/src/backend/sql/Makefile.am
   gnucash/trunk/src/gnc-module/Makefile.am
   gnucash/trunk/src/html/Makefile.am
Log:
Bug #602069: Fix build on Solaris for different gmp header locations

Patch by Halton Huo:

Since solaris ship gmp header files under /usr/include/gmp rather than
/usr/include, so this bug only happens on those systems which does not ship gmp
headers into /usr/include.

Actually this is aware during configure time through "guile-config compile". My
GUILE_INCS is -I/usr/include/gmp. So adding GUILE_INCS for AM_CPPFLAGS in
src/gnc-module/Makefile.am will fix this bug.

Modified: gnucash/trunk/src/backend/sql/Makefile.am
===================================================================
--- gnucash/trunk/src/backend/sql/Makefile.am	2009-11-16 01:05:22 UTC (rev 18414)
+++ gnucash/trunk/src/backend/sql/Makefile.am	2009-11-16 21:42:23 UTC (rev 18415)
@@ -12,6 +12,7 @@
   -I${top_srcdir}/lib/libc\
   -I${top_srcdir}/src/libqof/qof \
   ${GLIB_CFLAGS} \
+  ${GUILE_INCS} \
   ${GCONF_CFLAGS} \
   ${WARN_CFLAGS}
 
@@ -45,6 +46,7 @@
 
 libgnc_backend_sql_la_LIBADD = \
    ${GLIB_LIBS} \
+   ${GUILE_LIBS} \
    ${GCONF_LIBS} \
    ${top_builddir}/src/engine/libgncmod-engine.la \
    ${top_builddir}/src/libqof/qof/libgnc-qof.la

Modified: gnucash/trunk/src/gnc-module/Makefile.am
===================================================================
--- gnucash/trunk/src/gnc-module/Makefile.am	2009-11-16 01:05:22 UTC (rev 18414)
+++ gnucash/trunk/src/gnc-module/Makefile.am	2009-11-16 21:42:23 UTC (rev 18415)
@@ -4,7 +4,8 @@
    -I${top_srcdir}/lib/libc \
    -I${top_srcdir}/src \
    -I${top_srcdir}/src/core-utils \
-   ${GLIB_CFLAGS}
+   ${GLIB_CFLAGS} \
+   ${GUILE_INCS}
 
 lib_LTLIBRARIES = libgnc-module.la
 
@@ -13,7 +14,8 @@
 libgnc_module_la_LIBADD = \
   ../core-utils/libgnc-core-utils.la \
   ${top_builddir}/lib/libc/libc-missing.la \
-  ${GLIB_LIBS}
+  ${GLIB_LIBS} \
+  ${GUILE_LIBS}
 
 gncmoddir = ${GNC_SHAREDIR}/guile-modules/gnucash
 gncmod_DATA = gnc-module.scm

Modified: gnucash/trunk/src/html/Makefile.am
===================================================================
--- gnucash/trunk/src/html/Makefile.am	2009-11-16 01:05:22 UTC (rev 18414)
+++ gnucash/trunk/src/html/Makefile.am	2009-11-16 21:42:23 UTC (rev 18415)
@@ -14,6 +14,7 @@
   -I${top_srcdir}/lib/libc \
   ${QOF_CFLAGS} \
   ${GLIB_CFLAGS} \
+  ${GUILE_INCS} \
   ${GTK_CFLAGS} \
   ${GNOME_CFLAGS} \
   ${GOFFICE_CFLAGS}



More information about the gnucash-changes mailing list