Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[develop] Added environment variable LDFLAGS on macOS as requested by…
… the corresponding module file (ufs-community#729) On macOS with GNU compiler, once the module file build_macos_gnu.lua is loaded, it outputs a message to request for setting environment variable LDFLAGS: Please export env. variable LDFLAGS after the module is successfully loaded: > export LDFLAGS="-L$MPI_ROOT/lib " " % When using script devbuild.sh however, it does not give users a chance to read/set this environment variable. Three lines in the script devbuild.sh were added, which will set this environment variable automatically when the module build_macos_gnu is detected. if [[ "${MODULE_FILE}" == "build_macos_gnu" ]]; then export LDFLAGS+=" -L$MPI_ROOT/lib " fi This will make script devbuild.sh work on macOS as it does on other platforms and will also avoid a library not found error on macOS.
- Loading branch information