-
Notifications
You must be signed in to change notification settings - Fork 0
/
gcc-8.1.0
44 lines (34 loc) · 1.42 KB
/
gcc-8.1.0
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
44
# cd /opt/apps/source/gcc
# git clone -b releases/gcc-8.1.0 https://github.com/gcc-mirror/gcc.git gcc-8.1.0
# cd gcc-8.1.0/
# ./contrib/download_prerequisites
# ./configure --prefix=/opt/apps/compilers/gcc/8.1.0 --enable-languages=c,c++,fortran --disable-multilib
# make -j $(nproc)
# make install
############################## Create Modulefile ##############################
# vim -p /opt/apps/modulefiles/compilers/gcc/8.1.0
#%Module1.0#####################################################################
###
### gcc-8.1.0 modulefile
###
###
#
#
set NAME "gcc-8.1.0"
set VERSION "8.1.0"
set DESC "gcc-8.1.0"
set BASEDIR /opt/apps/compilers/gcc/8.1.0
prepend-path PKG_CONFIG_PATH $BASEDIR/lib/pkgconfig
prepend-path PATH $BASEDIR/bin
#prepend-path LIBRARY_PATH $BASEDIR/lib
prepend-path LIBRARY_PATH $BASEDIR/lib64
#prepend-path LD_LIBRARY_PATH $BASEDIR/lib
prepend-path LD_LIBRARY_PATH $BASEDIR/lib64
prepend-path INCLUDE_PATH $BASEDIR/include
prepend-path FPATH $BASEDIR/include
prepend-path CPATH $BASEDIR/include
prepend-path MANPATH $BASEDIR/share/man
proc ModulesHelp { } {
puts stderr "\n\n $NAME $VERSION Version - $DESC \n"
}
###############################################################################