root/foundation-apps/mxterm-maxx/plink.sh
| Revision 8, 503 bytes (checked in by emasson, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | # $XTermId: plink.sh,v 1.4 2005/05/03 00:38:24 tom Exp $ |
| 3 | # $XFree86: xc/programs/xterm/plink.sh,v 3.2 2005/05/03 00:38:24 dickey Exp $ |
| 4 | # |
| 5 | # Reduce the number of dynamic libraries used to link an executable. |
| 6 | LINKIT= |
| 7 | while test $# != 0 |
| 8 | do |
| 9 | OPT="$1" |
| 10 | shift |
| 11 | case $OPT in |
| 12 | -l*) |
| 13 | echo "testing if $OPT is needed" |
| 14 | if ( eval $LINKIT $* >/dev/null 2>/dev/null ) |
| 15 | then |
| 16 | : echo ...no |
| 17 | else |
| 18 | echo ...yes |
| 19 | LINKIT="$LINKIT $OPT" |
| 20 | fi |
| 21 | ;; |
| 22 | *) |
| 23 | LINKIT="$LINKIT $OPT" |
| 24 | ;; |
| 25 | esac |
| 26 | done |
| 27 | eval $LINKIT |
Note: See TracBrowser
for help on using the browser.
