]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update for 64bit case. Several keys in CFLAGS and CXXFLAGS
authormaintenance team <salome-mnt@opencascade.com>
Wed, 18 Apr 2007 09:04:57 +0000 (09:04 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 18 Apr 2007 09:04:57 +0000 (09:04 +0000)
config_files/CAS-6.2.sh

index 2f70beea7f933d22afa15bcb49a3480e9c344091..2e00cc11828c52a6dc1c653fe0faccc849fb272e 100755 (executable)
@@ -99,8 +99,6 @@ cd ${PRODUCT_WORK}
 
 # configure
 if test `uname -m` = "x86_64" ; then
-    flags="$flags CFLAGS=-m64 -D_OCC64"
-    flags="$flags CXXFLAGS=-m64 -D_OCC64"
     flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
     flags="$flags --with-xmu-library=/usr/X11R6/lib64"
 else
@@ -121,7 +119,21 @@ if [ $? -eq 0 ] ; then flags="$flags --with-dps-include=$dpsdir/include --with-d
 flags="$flags --disable-debug --enable-production"
 
 export CASROOT=${PRODUCT_WORK}
-check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure $flags --prefix=${PRODUCT_DIR}
+
+if test `uname -m` = "x86_64" ; then
+echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} $flags CFLAGS="-m64 -D_OCC64" CXXFLAGS="-m64 -D_OCC64" >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+./configure --prefix=${PRODUCT_DIR} $flags CFLAGS="-m64 -D_OCC64" CXXFLAGS="-m64 -D_OCC64" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+else
+echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} $flags  >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+./configure --prefix=${PRODUCT_DIR} $flags >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
+fi
+
+if [ "$?" -ne "0" ] ; then
+    cat ${PRODUCT_DIR}/CONFIGURE.LOG
+    cat ${INSTALL_WORK}/errlog >&2
+    cat ${INSTALL_WORK}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG
+    exit 1
+fi
 
 # make
 GCC=`which gcc`