diff --git a/MAC_EnvironmentalVar.sh b/MAC_EnvironmentalVar.sh new file mode 100644 index 00000000..f5ce3218 --- /dev/null +++ b/MAC_EnvironmentalVar.sh @@ -0,0 +1,22 @@ +# +# Set Up Mac Specific Environmental Variables +# +#===================================================== + +fortran_var=$(find /opt/local/bin/gfortran-mp-*) +cc_var=$(find /opt/local/bin/gcc-mp-*) +cpp_var=$(find /opt/local/bin/g++-mp-*) + +echo "Environmental Variables set" + +FC="$fortran_var" +find ${FC} +export FC="$fortran_var" + +CC="$cc_var" +find ${CC} +export CC="$cc_var" + +CXX="$cpp_var" +find ${CXX} +export CXX="$cpp_var" diff --git a/MAC_install-exodus.sh b/MAC_install-exodus.sh index e3a6860d..48c6bdf6 100755 --- a/MAC_install-exodus.sh +++ b/MAC_install-exodus.sh @@ -16,6 +16,22 @@ SEACAS_INSTALL_DIR=${SEACAS_INSTALL_DIR:-"$(pwd)/TPLs/"} # EXO_COMMIT_HASH=${EXO_COMMIT_HASH:-v2021-10-11} # ================================================= +# ==== MAC SPECIFIC COMPILER EXPORTS =============== +export PATH="/opt/local/libexec/gnubin:/opt/local/bin:/opt/local/sbin:$PATH" +export COMPILER=MacPorts +fortran_var=$(find /opt/local/bin/gfortran-mp-*) +cc_var=$(find /opt/local/bin/gcc-mp-*) +cpp_var=$(find /opt/local/bin/g++-mp-*) + +FC="$fortran_var" +export FC="$fortran_var" + +CC="$cc_var" +export CC="$cc_var" + +CXX="$cpp_var" +export CXX="$cpp_var" + # ==== GET SOURCE ================================ mkdir -p ${SEACAS_INSTALL_DIR} cd ${SEACAS_INSTALL_DIR}