r23456 - gnucash/trunk - Make the test-dynload test work in the X11 version on MacOSX.

Mike Alexander mta at code.gnucash.org
Fri Nov 29 01:24:13 EST 2013


Author: mta
Date: 2013-11-29 01:24:13 -0500 (Fri, 29 Nov 2013)
New Revision: 23456
Trac: http://svn.gnucash.org/trac/changeset/23456

Modified:
   gnucash/trunk/configure.ac
   gnucash/trunk/src/gnc-module/test/test-dynload.c
Log:
Make the test-dynload test work in the X11 version on MacOSX.

Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac	2013-11-28 11:35:57 UTC (rev 23455)
+++ gnucash/trunk/configure.ac	2013-11-29 06:24:13 UTC (rev 23456)
@@ -331,6 +331,7 @@
     ;;
   darwin*)
     platform=darwin
+    AC_DEFINE(PLATFORM_OSX,1,[Running on OSX, either X11 or Quartz])
     AC_MSG_RESULT($platform)
     AC_MSG_CHECKING(For GDK-Quartz)
     platform=osx

Modified: gnucash/trunk/src/gnc-module/test/test-dynload.c
===================================================================
--- gnucash/trunk/src/gnc-module/test/test-dynload.c	2013-11-28 11:35:57 UTC (rev 23455)
+++ gnucash/trunk/src/gnc-module/test/test-dynload.c	2013-11-29 06:24:13 UTC (rev 23456)
@@ -28,7 +28,7 @@
 #ifdef G_OS_WIN32
 /* MinGW builds libgnc-module-0.dll */
     modpath = g_module_build_path ("../.libs", "gnc-module-0");
-#elif defined GDK_QUARTZ
+#elif defined(PLATFORM_OSX)
 /* We build libgnc-module as a shared library for testing, and on OSX
  * that means that g_module_build_path (), which uses ".so", doesn't
  * build the right path name.



More information about the gnucash-changes mailing list