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})
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}
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}"
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