there are a variety of scripts to do it in /usr/share/astro
note they have names like pglink.f77 and contain lines bringing in pgplot and x11 libraries:
g77 -fno-backslash -o $1 $1.f  -L/usr/share/astro/pgplot -lpgplot -L/usr/X11R6/lib -lX11 -lGL -xlist
Be First to Comment