X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=misc%2Fshlib;h=d9d250ac5a9c54ca0949d20f0cf420234b5fbfe3;hb=refs%2Ftags%2Fv5.4;hp=6817a0d70eafee0f0249bd878aa4a6081a1c61ef;hpb=b1f61d9f3aa244512045a6b02e759825d7049d34;p=ncurses.git diff --git a/misc/shlib b/misc/shlib index 6817a0d7..d9d250ac 100755 --- a/misc/shlib +++ b/misc/shlib @@ -29,7 +29,7 @@ # # Author: Thomas E. Dickey 1996 # -# $Id: shlib,v 1.6 2000/05/20 23:01:17 tom Exp $ +# $Id: shlib,v 1.7 2003/07/19 22:58:14 tom Exp $ # Use this script as a wrapper when running executables linked to shared # libraries on systems that use the $LD_LIBRARY_PATH variable and don't embed # the soname's path within the linked executable (such as IRIX), e.g, @@ -84,4 +84,11 @@ if test -n "$q" ; then fi export LD_LIBRARY_PATH fi + +# cygwin doesn't use LD_LIBRARY_PATH, but does use PATH +if test -n "$PATHEXT" ; then + PATH=$LD_LIBRARY_PATH:$PATH; + export PATH +fi + eval "$*"