diff --git a/other/gfortran-update-sdk b/other/gfortran-update-sdk new file mode 100755 index 000000000000..3507c26037f1 --- /dev/null +++ b/other/gfortran-update-sdk @@ -0,0 +1,12 @@ +#!/bin/sh + +if [ -z "$1" ]; then + SDK=`xcrun --show-sdk-path` +else + SDK="$1" +fi + +echo "Updating gfortran SDK path to $SDK" + +ln -sfn "$SDK" /opt/R/arm64/gfortran/SDK || ( echo "ERROR: cannot update the symlink! Try sudo ..." >&2; exit 1) +