From 86489dd5a7751440756172c67389b338df9c57cd Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sat, 5 Oct 2002 17:29:32 +0000 Subject: [PATCH] Make AIX work again [SVN r15737] --- build/Jamfile | 5 ++++- src/aix_init_module.cpp | 16 +++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/build/Jamfile b/build/Jamfile index 97d8222e..eb092146 100644 --- a/build/Jamfile +++ b/build/Jamfile @@ -20,7 +20,10 @@ if [ check-python-config ] if $(UNIX) && ( $(OS) = AIX ) { - bpl-linkflags = "-e initlibbpl" ; + bpl-linkflags = "-e initlibboost_python" + "-e initlibboost_python_debug + "-e initlibboost_python_pydebug" + ; } dll boost_python diff --git a/src/aix_init_module.cpp b/src/aix_init_module.cpp index 2345aa4f..93c710ec 100644 --- a/src/aix_init_module.cpp +++ b/src/aix_init_module.cpp @@ -23,10 +23,20 @@ namespace boost { namespace python { namespace detail { namespace { - extern "C" void initlibbpl() + static PyMethodDef initial_methods[] = { { 0, 0, 0, 0 } }; + extern "C" void initlibboost_python() { - static PyMethodDef initial_methods[] = { { 0, 0, 0, 0 } }; - Py_InitModule("libbpl", initial_methods); + Py_InitModule("libbboost_python", initial_methods); + } + + extern "C" void initlibboost_python_debug() + { + Py_InitModule("libbboost_python_debug", initial_methods); + } + + extern "C" void initlibboost_python_pydebug() + { + Py_InitModule("libbboost_python_pydebug", initial_methods); } struct find_and_open_file