Ticket #13157: 13157_scripts.patch

File 13157_scripts.patch, 736 bytes (added by jdemeyer, 7 years ago)
  • (a) a/sage-g77_shared vs. (b) b/sage-inline-fortran

    # HG changeset patch
    # User Jeroen Demeyer <jdemeyer@cage.ugent.be>
    # Date 1345627968 -7200
    # Node ID 5cf1b7892199f41ee3ec34739b34fb35a9c39c9a
    # Parent  e51ea1fbeafe0ff111ae6605382c22fbceb1713e
    Fix inline Fortran
    
    diff --git a/sage-g77_shared b/sage-inline-fortran
    rename from sage-g77_shared
    rename to sage-inline-fortran
    a b  
    11#!/usr/bin/env bash
    22
     3# Compile Fortran code within Sage,
     4# see devel/sage/sage/misc/inline_fortran.py
     5
    36if [ "$UNAME" = "Darwin" ]; then
    4     sage_fortran -v -bundle -undefined dynamic_lookup $@
     7    exec sage_fortran -bundle -undefined dynamic_lookup "$@"
    58else
    6     sage_fortran -shared $@
     9    exec sage_fortran -shared "$@"
    710fi
    8 
    9 exit $?