-
Notifications
You must be signed in to change notification settings - Fork 0
/
64dev.sh
executable file
·43 lines (36 loc) · 1.39 KB
/
64dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# $Id: 64dev.sh,v 1.4 2014/10/02 09:31:37 eha Exp eha $
# Copyright (C) 2007 Frederick Emmott <[email protected]>
# Copyright (C) 2009 Eric Hameleers, Eindhoven, NL
# Copyright (C) 2018 Ben Stern <[email protected]>
# Based on 32dev.sh, part of the Slamd64 Linux project (www.slamd64.com)
# 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/64:/usr/lib/qt/bin:$PATH"
export CC="gcc" # This is actually the /usr/bin/64/gcc wrapper
export CXX="g++"
export FC="gfortran" # This is actually the /usr/bin/64/gfortran wrapper
export F77="gfortran"
# Change the shell prompt to make it clear that we are in 64-bit mode:
PS1='\u@\h (64bit):\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 [ -z "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="/usr/local/lib:/lib:/usr/lib"
else
export LD_LIBRARY_PATH="/usr/local/lib:/lib:/usr/lib:$LD_LIBRARY_PATH"
fi
if [ -z "$PKG_CONFIG_PATH" ]; then
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
else
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
fi