]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Support Scientific Linux 5.1 64bit
authorvsr <vsr@opencascade.com>
Sat, 24 May 2008 13:35:16 +0000 (13:35 +0000)
committervsr <vsr@opencascade.com>
Sat, 24 May 2008 13:35:16 +0000 (13:35 +0000)
config_files/patches/qt-3.3.6-lib64.patch [new file with mode: 0755]
config_files/qt-3.3.6.sh

diff --git a/config_files/patches/qt-3.3.6-lib64.patch b/config_files/patches/qt-3.3.6-lib64.patch
new file mode 100755 (executable)
index 0000000..863cba4
--- /dev/null
@@ -0,0 +1,21 @@
+diff -Naur --exclude=CVS qt-3.3.6-orig/mkspecs/linux-g++-64/qmake.conf qt-3.3.6/mkspecs/linux-g++-64/qmake.conf
+--- qt-3.3.6-orig/mkspecs/linux-g++-64/qmake.conf      2006-03-08 19:48:20.000000000 +0300
++++ qt-3.3.6/mkspecs/linux-g++-64/qmake.conf   2008-05-24 15:41:58.000000000 +0400
+@@ -20,7 +20,7 @@
+ QMAKE_YACCFLAGS_MANGLE  = -p $base -b $base
+ QMAKE_YACC_HEADER       = $base.tab.h
+ QMAKE_YACC_SOURCE       = $base.tab.c
+-QMAKE_CFLAGS          = -pipe
++QMAKE_CFLAGS          = -pipe -m64
+ QMAKE_CFLAGS_DEPS     = -M
+ QMAKE_CFLAGS_WARN_ON  = -Wall -W
+ QMAKE_CFLAGS_WARN_OFF = -w
+@@ -48,7 +48,7 @@
+ QMAKE_INCDIR_QT               = $(QTDIR)/include
+ QMAKE_LIBDIR_QT               = $(QTDIR)/lib
+ QMAKE_INCDIR_OPENGL   = /usr/X11R6/include
+-QMAKE_LIBDIR_OPENGL   = /usr/X11R6/lib64
++QMAKE_LIBDIR_OPENGL   = /usr/X11R6/lib64 /usr/lib64
+ QMAKE_LINK            = g++
+ QMAKE_LINK_SHLIB      = g++
index 2c45b880b1691fd20c05219187426ab62024add8..b172a1b9fb27954f610998af78740e163129c95b 100755 (executable)
@@ -95,6 +95,14 @@ makedir ${PRODUCT_DIR}
 
 check_jb tar xfz ${SOURCE_DIR}/qt-3.3.6.tar.gz -C ${INSTALL_WORK}
 
+# apply patch for 64-bit platforms
+if test `uname -m` = "x86_64" ; then
+    if [ -f patches/qt-3.3.6-lib64.patch ] ; then
+       cp patches/qt-3.3.6-lib64.patch ${PRODUCT_WORK}
+       ( cd ${PRODUCT_WORK} ; patch -p1 < qt-3.3.6-lib64.patch )
+    fi
+fi
+
 cd ${PRODUCT_WORK}
 
 mv -f configure configure-orig