diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-26 11:11:55 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2006-11-26 11:11:55 +0000 |
commit | 145a665014b2aa230b81b582689c8ec17ef9968e (patch) | |
tree | 5ea1019527fe16cc21b9702371c72cc7f8c8090c /app/xterm/plink.sh | |
parent | 95c2d1cbda23a41cdf6e63520c7f0b825e63dd5b (diff) |
Importing xterm 216
Diffstat (limited to 'app/xterm/plink.sh')
-rw-r--r-- | app/xterm/plink.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/xterm/plink.sh b/app/xterm/plink.sh new file mode 100644 index 000000000..244f1b517 --- /dev/null +++ b/app/xterm/plink.sh @@ -0,0 +1,27 @@ +#!/bin/sh +# $XTermId: plink.sh,v 1.4 2005/05/03 00:38:24 tom Exp $ +# $XFree86: xc/programs/xterm/plink.sh,v 3.2 2005/05/03 00:38:24 dickey Exp $ +# +# Reduce the number of dynamic libraries used to link an executable. +LINKIT= +while test $# != 0 +do + OPT="$1" + shift + case $OPT in + -l*) + echo "testing if $OPT is needed" + if ( eval $LINKIT $* >/dev/null 2>/dev/null ) + then + : echo ...no + else + echo ...yes + LINKIT="$LINKIT $OPT" + fi + ;; + *) + LINKIT="$LINKIT $OPT" + ;; + esac +done +eval $LINKIT |