Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbb
modulefiles
Commits
b8a20be9
Commit
b8a20be9
authored
Feb 05, 2020
by
remy
Browse files
adding gcc for current installed release
parent
53a27b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
envfiles/gcc-current-7
0 → 100644
View file @
b8a20be9
#%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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment