From 34196d3506a461913913a579680590ae8cfa8611 Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 28 Feb 2008 11:08:20 +0000 Subject: [PATCH] Correct LIB_PREFIX definition for case if 32-bit binaries are installed to 64-bit platform and vice versa. --- config_files/BLSURFPLUGIN.sh | 10 ++++++---- config_files/CALCULATOR.sh | 10 ++++++---- config_files/COMPONENT.sh | 10 ++++++---- config_files/FILTER.sh | 10 ++++++---- config_files/GEOM.sh | 10 ++++++---- config_files/GHS3DPLUGIN.sh | 10 ++++++---- config_files/GHS3DPRLPLUGIN.sh | 10 ++++++---- config_files/GUI.sh | 10 ++++++---- config_files/HELLO.sh | 10 ++++++---- config_files/HexoticPLUGIN.sh | 10 ++++++---- config_files/KERNEL.sh | 10 ++++++---- config_files/LIGHT.sh | 10 ++++++---- config_files/MED.sh | 10 ++++++---- config_files/MULTIPR.sh | 10 ++++++---- config_files/NETGENPLUGIN.sh | 10 ++++++---- config_files/PYCALCULATOR.sh | 10 ++++++---- config_files/PYHELLO.sh | 10 ++++++---- config_files/RANDOMIZER.sh | 10 ++++++---- config_files/SIERPINSKY.sh | 10 ++++++---- config_files/SMESH.sh | 10 ++++++---- config_files/SUPERV.sh | 10 ++++++---- config_files/VISU.sh | 10 ++++++---- config_files/YACS.sh | 10 ++++++---- config_files/blsurf-2.7.12.sh | 10 ++++++---- config_files/common.sh | 13 ++++++++----- config_files/omniORB-4.1.0.sh | 8 ++++++-- config_files/sip-4.7.3.sh | 16 ++++++++++------ config_files/xdata-0.5.52.sh | 8 ++++++-- 28 files changed, 174 insertions(+), 111 deletions(-) diff --git a/config_files/BLSURFPLUGIN.sh b/config_files/BLSURFPLUGIN.sh index da984d2..83b4b92 100755 --- a/config_files/BLSURFPLUGIN.sh +++ b/config_files/BLSURFPLUGIN.sh @@ -33,10 +33,12 @@ return 1 } print_env_bin(){ -if test `uname -m` = "x86_64" ; then -export LIB_PREFIX=64 -else -export LIB_PREFIX="" +if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then + LIB_PREFIX=64 +elif [ -d ${PRODUCT_DIR}/lib ] ; then + LIB_PREFIX="" +else + LIB_PREFIX=64 fi cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <&1 | awk '{print $2}' | awk -F. '{printf("0x%02d%02d%02d",$1,$2,$3)}'` diff --git a/config_files/xdata-0.5.52.sh b/config_files/xdata-0.5.52.sh index a7e1094..8262824 100755 --- a/config_files/xdata-0.5.52.sh +++ b/config_files/xdata-0.5.52.sh @@ -19,8 +19,12 @@ return 0 print_env_bin() { -if test `uname -m` = "x86_64" ; then -export PYTHON_LIB_PREFIX=64 +if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then + PYTHON_LIB_PREFIX=64 +elif [ -d ${PRODUCT_DIR}/lib ] ; then + PYTHON_LIB_PREFIX="" +else + PYTHON_LIB_PREFIX=64 fi cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <