build-blocks:
- modulefiles added
This commit is contained in:
39
scripts/Programming/gcc/modulefile
Normal file
39
scripts/Programming/gcc/modulefile
Normal file
@@ -0,0 +1,39 @@
|
||||
#%Module1.0
|
||||
|
||||
set whatis "GNU Compiler Collection"
|
||||
set url "http://gcc.gnu.org/"
|
||||
set license "GNU GPL v2/v3"
|
||||
set maintainer "Achim Gsell <achim.gsell@psi.ch>"
|
||||
|
||||
set help "
|
||||
The GNU Compiler Collection includes front ends for C, C++, Objective-C,
|
||||
Fortran, Java, Ada, and Go, as well as libraries for these languages
|
||||
(libstdc++, libgcj,...). GCC was originally written as the compiler for
|
||||
the GNU operating system.
|
||||
|
||||
This module includes compilers for
|
||||
- C/C++
|
||||
- Objective-C/Objective-C++
|
||||
- Fortran
|
||||
"
|
||||
|
||||
source $env(PSI_LIBMODULES)
|
||||
|
||||
set-family "Compiler"
|
||||
|
||||
setenv CC $PREFIX/bin/gcc
|
||||
setenv CXX $PREFIX/bin/g++
|
||||
setenv F77 $PREFIX/bin/gfortran
|
||||
setenv F90 $PREFIX/bin/gfortran
|
||||
setenv FC $PREFIX/bin/gfortran
|
||||
setenv FORTRAN $PREFIX/bin/gfortran
|
||||
|
||||
# Ubuntu hack
|
||||
if { [file exist "/usr/include/x86_64-linux-gnu"] } {
|
||||
append-path C_INCLUDE_PATH "/usr/include/x86_64-linux-gnu"
|
||||
append-path CPLUS_INCLUDE_PATH "/usr/include/x86_64-linux-gnu"
|
||||
}
|
||||
|
||||
if { [file exist "/usr/lib/x86_64-linux-gnu"] } {
|
||||
append-path LIBRARY_PATH "/usr/lib/x86_64-linux-gnu"
|
||||
}
|
||||
Reference in New Issue
Block a user