Commit b8a20be9 authored by remy's avatar remy
Browse files

adding gcc for current installed release

parent 53a27b28
#%Module######################################################################
#
# gcc7 modulefile 20200205
#
proc ModulesHelp { } {
puts stderr "This modulefile defines the library paths and"
puts stderr "include paths needed to use gcc7"
puts stderr "The program gcc7"
puts stderr "is added to PATH."
}
set rel [uname release]
global prodlist
#if { $rel == "2.6.32-504.16.2.el6.x86_64" } {
# set prodlist {libc-2.14 libmpc2}
#} else {
# set prodlist {libmpc2}
#}
set is_module_rm [module-info mode remove]
catch {set modulehomes $env(MODULEPATH)}
#if { [ module-info mode load ] } {
# foreach prod $prodlist {
# foreach mfilehome [ split $modulehomes :] {
# if { [file exists $mfilehome/$prod] } {
# module load $prod
# }
# }
# }
#}
#
#if { [ module-info mode remove ] } {
# foreach prod $prodlist {
# foreach mfilehome [ split $modulehomes :] {
# if { [file exists $mfilehome/$prod] } {
# module unload $prod
# }
# }
# }
#}
set GCC_LEVEL 7
set GCC_SUBVER 0
set GCC_CURPATH /usr/lib/gcc/x86_64-linux-gnu/
prepend-path PATH $GCC_CURPATH/$GCC_LEVEL
prepend-path LD_LIBRARY_PATH $GCC_CURPATH/$GCC_LEVEL
setenv CPLUS_INCLUDE_PATH $GCC_CURPATH/$GCC_LEVEL/include
setenv C_INCLUDE_PATH $GCC_CURPATH/$GCC_LEVEL/include
append-path PE_PRODUCT_LIST GCC.$GCC_LEVEL
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment