Lmod added
This commit is contained in:
25
scripts/Lmod.build
Executable file
25
scripts/Lmod.build
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$(dirname $0)/../lib/libem.bash"
|
||||
|
||||
function em.configure() {
|
||||
cd "${EM_SRCDIR}"
|
||||
"${EM_SRCDIR}"/configure \
|
||||
--prefix="${EM_PREFIX}/core" \
|
||||
--with-module-root-path="${MODULEPATH_ROOT}" \
|
||||
|| exit 1
|
||||
}
|
||||
|
||||
function em.build() {
|
||||
cd "${EM_SRCDIR}"
|
||||
|
||||
make -j ${JOBS}
|
||||
}
|
||||
|
||||
# use system gcc to compile
|
||||
declare -rx CC=gcc
|
||||
|
||||
em.add_to_family "core"
|
||||
em.set_build_dependencies "lua"
|
||||
em.make_all
|
||||
em.cleanup_src
|
||||
Reference in New Issue
Block a user