X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=misc%2Fshlib;fp=misc%2Fshlib;h=d9d250ac5a9c54ca0949d20f0cf420234b5fbfe3;hp=6817a0d70eafee0f0249bd878aa4a6081a1c61ef;hb=a8987e73ec254703634802b4f7ee30d3a485524d;hpb=46722468f47c2b77b3987729b4bcf2321cccfd01 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 "$*"