gnucash master: Fix build on OSX, which doesn't allow linking shared modules.

John Ralls jralls at code.gnucash.org
Thu Sep 4 18:13:25 EDT 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/3cc4dc00 (commit)
	from  https://github.com/Gnucash/gnucash/commit/10ab13eb (commit)



commit 3cc4dc00e6f83a288fc2d1c74e87d1960a2504eb
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Sep 4 12:25:36 2014 -0700

    Fix build on OSX, which doesn't allow linking shared modules.

diff --git a/src/import-export/aqb/test/Makefile.am b/src/import-export/aqb/test/Makefile.am
index dcd0391..77e8d5a 100644
--- a/src/import-export/aqb/test/Makefile.am
+++ b/src/import-export/aqb/test/Makefile.am
@@ -35,7 +35,6 @@ test_aqb_LDADD = \
   ${top_builddir}/src/register/ledger-core/libgncmod-ledger-core.la \
   ${top_builddir}/src/report/report-gnome/libgncmod-report-gnome.la \
   ${top_builddir}/src/app-utils/libgncmod-app-utils.la \
-  ${top_builddir}/src/backend/xml/libgncmod-backend-xml.la \
   ${top_builddir}/src/backend/xml/libgnc-backend-xml-utils.la \
   ${top_builddir}/src/engine/libgncmod-engine.la \
   ${top_builddir}/src/core-utils/libgnc-core-utils.la \
diff --git a/src/import-export/aqb/test/test-aqb.c b/src/import-export/aqb/test/test-aqb.c
index 2e6d903..e18cd96 100644
--- a/src/import-export/aqb/test/test-aqb.c
+++ b/src/import-export/aqb/test/test-aqb.c
@@ -29,6 +29,7 @@ Write and link other test files */
 #include "backend/xml/gnc-backend-xml.h"
 #include "gnc-module/gnc-module.h"
 #include "engine/gnc-engine.h"
+#include <engine/TransLog.h>
 
 void test_qofsession_aqb_kvp( void );
 
@@ -46,7 +47,8 @@ main (int   argc,
 
     gnc_module_system_init();
     gnc_engine_init_static(argc, argv);
-    gnc_module_init_backend_xml(); // register the file:// handler
+    qof_load_backend_library ("../../../backend/xml/.libs/",
+			      "gncmod-backend-xml");
 
     /* Add test functions and suites. See
      * http://library.gnome.org/devel/glib/stable/glib-Testing.html for



Summary of changes:
 src/import-export/aqb/test/Makefile.am | 1 -
 src/import-export/aqb/test/test-aqb.c  | 4 +++-
 2 files changed, 3 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list