source: athstatic @ 700c712

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 700c712 was 601a9e0, checked in by James M. Kretchmar <kretch@mit.edu>, 22 years ago
Patch to fix memory bug in replying to CC messages If we're on Athena and have static krb (or other) libraries, use them Added "athstatic" program to the release, which handles the above Cast to an int for isspace, to make gcc -Wall quiet Added 'zlist' and 'l' to basic help.
  • Property mode set to 100755
File size: 611 bytes
Line 
1#!/bin/sh
2# $Id$
3
4# Usage: athstatic progname options ...
5
6# Replaces -lfoo options with /usr/athena/lib/libfoo.a if it exists,
7# thus preferring static libraries to shared libraries for stuff in
8# /usr/athena/lib.
9
10progname=$1
11shift
12
13options=
14for arg do
15  case $arg in
16  -l*)
17    # Chop off the first two characters to get the library name.
18    lib=`expr "$arg" : '..\(.*\)$'`
19    if [ -f /usr/athena/lib/lib${lib}.a ]; then
20      options="$options /usr/athena/lib/lib${lib}.a"
21    else
22      options="$options $arg"
23    fi
24    ;;
25  *)
26    options="$options $arg"
27    ;;
28  esac
29done
30
31exec "$progname" $options
Note: See TracBrowser for help on using the repository browser.