From: Axel R. <ro...@us...> - 2012-02-15 18:31:52
|
Update of /cvsroot/sdif/Easdif/swig/python In directory vz-cvs-3.sog:/tmp/cvs-serv26016/swig/python Modified Files: CMakeLists.txt Log Message: removed explicit linking with python library which produces errors under linux 64bit Index: CMakeLists.txt =================================================================== RCS file: /cvsroot/sdif/Easdif/swig/python/CMakeLists.txt,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** CMakeLists.txt 11 Jan 2012 20:30:10 -0000 1.14 --- CMakeLists.txt 15 Feb 2012 18:31:49 -0000 1.15 *************** *** 31,35 **** SET(CMAKE_SWIG_FLAGS "-I${CMAKE_CURRENT_BINARY_DIR}" "-I${CMAKE_CURRENT_SOURCE_DIR}") SWIG_ADD_MODULE(eaSDIF python ${INTERFACE_SRC} ) ! SWIG_LINK_LIBRARIES(eaSDIF Easdif_static${DEBUGEXT} ${PYTHON_LIBRARY}) ADD_CUSTOM_TARGET(pythonswig) ADD_DEPENDENCIES(pythonswig ${SWIG_MODULE_eaSDIF_REAL_NAME}) --- 31,38 ---- SET(CMAKE_SWIG_FLAGS "-I${CMAKE_CURRENT_BINARY_DIR}" "-I${CMAKE_CURRENT_SOURCE_DIR}") SWIG_ADD_MODULE(eaSDIF python ${INTERFACE_SRC} ) ! # SWIG_LINK_LIBRARIES(eaSDIF Easdif_static_pic${DEBUGEXT} ${PYTHON_LIBRARY}) ! # PYTHON LIBRARY seems not to be required because it is in fact part of python executable ! # linking with libpython.a fails for some compilers on linux 64 bit due to the fact that the librray is not compiled with -fPIC flag. ! SWIG_LINK_LIBRARIES(eaSDIF Easdif_static_pic${DEBUGEXT}) ADD_CUSTOM_TARGET(pythonswig) ADD_DEPENDENCIES(pythonswig ${SWIG_MODULE_eaSDIF_REAL_NAME}) |