#!/bin/sh
# @(#)ld77.sh	16.1.1.1 (ESO-IPG) 06/19/01 15:42:13

# 
# Script to link Fortran with C in PC/Alpha using f2c 
# The script just rewrites the link command putting the arguments -lf2c -lm at
# the end. Otherwise the linker will report not resolve definitions 

exec cc `echo $* | sed 's/-o/-lf2c -lm -o/'`
