"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plink.sh" between
xterm-363.tgz and xterm-364.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

plink.sh  (xterm-363.tgz):plink.sh  (xterm-364.tgz)
#!/bin/sh #!/bin/sh
# $XTermId: plink.sh,v 1.10 2013/07/07 01:20:48 tom Exp $ # $XTermId: plink.sh,v 1.12 2021/01/27 00:18:09 tom Exp $
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# this file is part of xterm # this file is part of xterm
# #
# Copyright 2001-2010,2013 by Thomas E. Dickey # Copyright 2001-2013,2021 by Thomas E. Dickey
# #
# All Rights Reserved # All Rights Reserved
# #
# Permission is hereby granted, free of charge, to any person obtaining a # Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the # copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including # "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, # without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to # distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to # permit persons to whom the Software is furnished to do so, subject to
# the following conditions: # the following conditions:
skipping to change at line 44 skipping to change at line 44
# #
# Reduce the number of dynamic libraries used to link an executable. # Reduce the number of dynamic libraries used to link an executable.
LINKIT= LINKIT=
ASNEED=no ASNEED=no
while test $# != 0 while test $# != 0
do do
if test $ASNEED = no && test -n "$LINKIT" if test $ASNEED = no && test -n "$LINKIT"
then then
ASNEED=yes ASNEED=yes
OPT=-Wl,-as-needed OPT=-Wl,-as-needed
if ( eval $LINKIT $OPT $* >/dev/null 2>/dev/null ) if ( eval $LINKIT $OPT "$@" >/dev/null 2>/dev/null )
then then
WARNED=`eval $LINKIT $OPT $* 2>&1` WARNED=`eval $LINKIT $OPT "$@" 2>&1`
case ".$WARNED" in case ".$WARNED" in
*Warning*|*nsupported*|*nrecognized*|*nknown*) *Warning*|*nsupported*|*nrecognized*|*nknown*)
;; ;;
*) *)
LINKIT="$LINKIT $OPT $*" LINKIT="$LINKIT $OPT $*"
break break
;; ;;
esac esac
fi fi
fi fi
OPT="$1" OPT="$1"
shift shift
case $OPT in case $OPT in
-k*) -k*)
OPT=`echo "$OPT" | sed -e 's/^-k/-l/'` OPT=`echo "$OPT" | sed -e 's/^-k/-l/'`
echo "always use $OPT (cannot test if needed)"
LINKIT="$LINKIT $OPT" LINKIT="$LINKIT $OPT"
;; ;;
-l*) -l*)
echo "testing if $OPT is needed" echo "testing if $OPT is needed"
if ( eval $LINKIT $* >/dev/null 2>/dev/null ) if ( eval $LINKIT "$@" >/dev/null 2>/dev/null )
then then
: echo ...no : echo ...no
else else
echo ...yes echo ...yes
LINKIT="$LINKIT $OPT" LINKIT="$LINKIT $OPT"
fi fi
;; ;;
*) *)
LINKIT="$LINKIT $OPT" LINKIT="$LINKIT $OPT"
;; ;;
 End of changes. 6 change blocks. 
5 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)