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