summaryrefslogtreecommitdiffstats
path: root/compat32-tools
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2014-10-02 09:31:37 +0000
committer Eric Hameleers <alien@slackware.com>2014-10-02 09:31:37 +0000
commitf83e64984e39a66630f293c0b18d0eccb37cf848 (patch)
tree36844415c780f7b85653ba21a6987a525eec402b /compat32-tools
parentff27359678b0c6c1aa04f277a8f45dc3cfd17414 (diff)
downloadmultilib-f83e64984e39a66630f293c0b18d0eccb37cf848.tar.gz
multilib-f83e64984e39a66630f293c0b18d0eccb37cf848.tar.xz
Show a modified command prompt. Add QT5DIR
Diffstat (limited to 'compat32-tools')
-rw-r--r--compat32-tools/32dev.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/compat32-tools/32dev.sh b/compat32-tools/32dev.sh
index 170097c..017cb5e 100644
--- a/compat32-tools/32dev.sh
+++ b/compat32-tools/32dev.sh
@@ -8,19 +8,26 @@
# Distributed under the GNU General Public License, version 2, as
# published by the Free Software Foundation.
+# Modify the compilation/linking environment:
export PATH="/usr/bin/32:/usr/lib/qt/bin:$PATH"
export CC="gcc" # This is actually the /usr/bin/32/gcc wrapper
export CXX="g++"
export FC="gfortran" # This is actually the /usr/bin/32/gfortran wrapper
export F77="gfortran"
-# Check for Qt4 and the old 'compatibility install' of Qt3:
+# Change the shell prompt to make it clear that we are in 32bit mode:
+PS1='\u@\h (32bit):\w\$ '
+
+# Check for Qt5, Qt4 and the old 'compatibility install' of Qt3:
if [ -d /opt/kde3/lib/qt3 ]; then
export QTDIR=/opt/kde3/lib/qt3
fi
if [ -d /usr/lib/qt ]; then
export QT4DIR=/usr/lib/qt
fi
+if [ -d /usr/lib/qt5 ]; then
+ export QT5DIR=/usr/lib/qt5
+fi
if [ ! "$LD_LIBRARY_PATH" = "" ]; then
export LD_LIBRARY_PATH="/usr/local/lib:/lib:/usr/lib:$LD_LIBRARY_PATH"