]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Enable shared libraries for python
authorvsr <vsr@opencascade.com>
Thu, 22 Dec 2005 14:19:46 +0000 (14:19 +0000)
committervsr <vsr@opencascade.com>
Thu, 22 Dec 2005 14:19:46 +0000 (14:19 +0000)
config_files/Python-2.3.5.sh

index 182cae83c63f458f6f40b581e413cefbab76d406..69fbe31379733543ecf07f8f0680b55979337b0a 100755 (executable)
@@ -27,6 +27,7 @@ export PATH=\${PYTHONHOME}/bin:\${PATH}
 export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
 export PYTHON_INCLUDE=\${PYTHONHOME}/include/python\${PYTHON_VERSION}
 export PYTHONPATH=\${PYTHONHOME}/lib/python\${PYTHON_VERSION}:\${PYTHONPATH}
+export LD_LIBRARY_PATH=\${PYTHONHOME}/lib:\${LD_LIBRARY_PATH}
 ##
 EOF
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
@@ -55,6 +56,8 @@ if [ -n "${pythonhome}" ] ; then
        path=`sort_path ${tmp}`
        tmp="\${PYTHONHOME}/lib/python\${PYTHON_VERSION} ${pythonhome}/lib/python${maj_ver}.${min_ver} \${PYTHONPATH} ${PYTHONPATH}";  
        pythonpath=`sort_path ${tmp}`
+       tmp="\${PYTHONHOME}/lib ${pythonhome}/lib \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}";  
+       ld_library_path=`sort_path ${tmp}`
        cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export PYTHONHOME=${pythonhome}
@@ -62,6 +65,7 @@ export PATH=${path}
 export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
 export PYTHON_INCLUDE=\${PYTHONHOME}/include/python\${PYTHON_VERSION}
 export PYTHONPATH=${pythonpath}
+export LD_LIBRARY_PATH=${ld_library_path}
 ##
 EOF
        make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
@@ -94,7 +98,7 @@ check_jb tar xfz ${SOURCE_DIR}/Python-2.3.5.tar.gz -C ${INSTALL_WORK}
 cd ${PRODUCT_WORK}
 
 check_job ${PRODUCT_DIR}/CONFIGURE.LOG \
-    ./configure --prefix=${PRODUCT_DIR} --with-threads --with-cxx=`which g++`
+    ./configure --prefix=${PRODUCT_DIR} --with-threads --with-cxx=`which g++` --enable-shared
 # vsr: not compiled on RedHat8.0 without libstdc++.so
 sed -e 's%LIBS=                -ldl  -lpthread -lutil%LIBS=            -ldl  -lpthread -lutil -lstdc++%g' Makefile > _Makefile
 mv -f _Makefile Makefile