[glom/glom-1-16] Python module: Use _ instead of . in the .so file name.



commit 0b76d70a57aeaa97db7a39c7ae68465de74cee61
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Oct 19 13:07:06 2010 +0200

    Python module: Use _ instead of . in the .so file name.
    
    * Makefile.am: This was broken by the commit on 2010-09-10.
    * tests/test_load_python_library.cc: Use the variable instead of hard-coding.

 ChangeLog                         |    7 +++++++
 Makefile.am                       |    8 ++++----
 tests/test_load_python_library.cc |    3 ++-
 3 files changed, 13 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e427462..4daf47d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-10-19  Murray Cumming  <murrayc murrayc com>
+
+	Python module: Use _ instead of . in the .so file name.
+
+	* Makefile.am: This was broken by the commit on 2010-09-10.
+	* tests/test_load_python_library.cc: Use the variable instead of hard-coding.
+
 1.16.0:
 
 2010-10-18  Murray Cumming  <murrayc murrayc com>>
diff --git a/Makefile.am b/Makefile.am
index 59f2570..cb27044 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -56,17 +56,17 @@ SUFFIXES = .rc .res
 
 bin_PROGRAMS = glom/glom
 lib_LTLIBRARIES = glom/libglom/libglom- GLOM_ABI_VERSION@.la
-pyexec_LTLIBRARIES = glom/python_embed/python_module/glom_ GLOM_ABI_VERSION@.la
+pyexec_LTLIBRARIES = glom/python_embed/python_module/glom_ GLOM_ABI_VERSION_UNDERLINED@.la
 
 include Makefile_libglom.am
 include Makefile_glom.am
 include Makefile_tests.am
 
-glom_python_embed_python_module_glom_ GLOM_ABI_VERSION@_la_SOURCES =		\
+glom_python_embed_python_module_glom_ GLOM_ABI_VERSION_UNDERLINED@_la_SOURCES =		\
 	glom/python_embed/python_module/py_glom_module.cc	\
 	glom/python_embed/python_module/py_glom_module.h
 
-glom_python_embed_python_module_glom_ GLOM_ABI_VERSION@_la_LIBADD = \
+glom_python_embed_python_module_glom_ GLOM_ABI_VERSION_UNDERLINED@_la_LIBADD = \
 	glom/libglom/libglom-$(GLOM_ABI_VERSION).la \
 	$(PYTHON_LIBS) $(BOOST_PYTHON_LIBS)
 
@@ -76,7 +76,7 @@ else
 pymod_ldflags = -module -avoid-version -no-undefined
 endif
 glom_pyexport = -export-symbols-regex '^_*initglom'
-glom_python_embed_python_module_glom_ GLOM_ABI_VERSION@_la_LDFLAGS = $(pymod_ldflags) $(glom_pyexport)
+glom_python_embed_python_module_glom_ GLOM_ABI_VERSION_UNDERLINED@_la_LDFLAGS = $(pymod_ldflags) $(glom_pyexport)
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = glom/libglom/glom- GLOM_ABI_VERSION@.pc
diff --git a/tests/test_load_python_library.cc b/tests/test_load_python_library.cc
index 48670d8..b0ab963 100644
--- a/tests/test_load_python_library.cc
+++ b/tests/test_load_python_library.cc
@@ -1,12 +1,13 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <dlfcn.h>
+#include "config.h"
 
 int main()
 {
   // Attempt to dynamically load the python module,
   // attempting to resolve all symbols immediately:
-  const char* path = "glom/python_embed/python_module/.libs/glom_1.16.so";
+  const char* path = "glom/python_embed/python_module/.libs/glom_" GLOM_ABI_VERSION_UNDERLINED ".so";
   void* lib = dlopen(path, RTLD_NOW);
 
   if(!lib)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]