#!/bin/sh # Compile Fortran code within Sage, # see src/sage/misc/inline_fortran.py [ -n "$FC" ] || FC=gfortran if [ "$UNAME" = "Darwin" ]; then exec $FC -bundle -undefined dynamic_lookup "$@" else exec $FC -shared "$@" fi