summaryrefslogtreecommitdiffstats
path: root/third_party/mesa/MesaLib/bin/install-sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/mesa/MesaLib/bin/install-sh')
-rw-r--r--third_party/mesa/MesaLib/bin/install-sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/third_party/mesa/MesaLib/bin/install-sh b/third_party/mesa/MesaLib/bin/install-sh
index 1300258..094ec0c 100644
--- a/third_party/mesa/MesaLib/bin/install-sh
+++ b/third_party/mesa/MesaLib/bin/install-sh
@@ -31,7 +31,7 @@ if [ $# -ge 2 ] ; then
# Last cmd line arg is the dest dir
for FILE in $@ ; do
- DEST="$FILE"
+ DESTDIR="$FILE"
done
# Loop over args, moving them to DEST directory
@@ -42,6 +42,25 @@ if [ $# -ge 2 ] ; then
exit 0
fi
+ DEST=$DESTDIR
+
+ # On CYGWIN, because DLLs are loaded by the native Win32 loader,
+ # they are installed in the executable path. Stub libraries used
+ # only for linking are installed in the library path
+ case `uname` in
+ CYGWIN*)
+ case $FILE in
+ *.dll)
+ DEST="$DEST/../bin"
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+
PWDSAVE=`pwd`
# determine file's type