Commit a997e3b5 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

ENH: On AIX vtkpython and pvtkpython have to be linked with special flags to...

ENH: On AIX vtkpython and pvtkpython have to be linked with special flags to compiler to get all the export symbols right.
parent 3dae8549
......@@ -5,7 +5,15 @@ CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/setup.py.in
# create the VTK/Python executable
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/vtkPythonAppInitConfigure.h.in
${VTK_BINARY_DIR}/Wrapping/Python/vtkPythonAppInitConfigure.h)
ADD_EXECUTABLE(vtkpython vtkPythonAppInit.cxx)
IF(CMAKE_SYSTEM_NAME MATCHES "AIX")
GET_FILENAME_COMPONENT(CMAKE_PYTHON_LIB_PREFIX "${PYTHON_LIBRARY}" PATH)
FIND_FILE(CMAKE_PYTHON_LIBRARY_EXPORT python.exp "${CMAKE_PYTHON_LIB_PREFIX}")
SET_TARGET_PROPERTIES( vtkpython PROPERTIES LINK_FLAGS
"-Wl,-bE:${CMAKE_PYTHON_LIBRARY_EXPORT}")
ENDIF(CMAKE_SYSTEM_NAME MATCHES "AIX")
IF(VTK_USE_CARBON)
FIND_PROGRAM(VTK_APPLE_RESOURCE Rez /Developer/Tools)
IF(VTK_APPLE_RESOURCE)
......@@ -85,6 +93,10 @@ ENDIF (VTK_USE_PARALLEL)
IF (VTK_USE_PARALLEL)
IF (VTK_USE_MPI)
ADD_EXECUTABLE(pvtkpython vtkParaPythonAppInit.cxx)
IF(CMAKE_SYSTEM_NAME MATCHES "AIX")
SET_TARGET_PROPERTIES( pvtkpython PROPERTIES LINK_FLAGS
"-Wl,-bE:${CMAKE_PYTHON_LIBRARY_EXPORT}")
ENDIF(CMAKE_SYSTEM_NAME MATCHES "AIX")
IF(VTK_USE_CARBON)
FIND_PROGRAM(VTK_APPLE_RESOURCE Rez /Developer/Tools)
IF(VTK_APPLE_RESOURCE)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment