diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2010-07-24 12:05:34 +0100 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-09-01 08:48:06 -0600 |
commit | c55a8a73a483305c7c9a7bcc7191dd7c833f873d (patch) | |
tree | 670a084e6c29aafd585d826735e30d09b1a9d3b9 /bin | |
parent | 36b195332fffdba6f596750266dc4a805d046b89 (diff) | |
download | external_mesa3d-c55a8a73a483305c7c9a7bcc7191dd7c833f873d.zip external_mesa3d-c55a8a73a483305c7c9a7bcc7191dd7c833f873d.tar.gz external_mesa3d-c55a8a73a483305c7c9a7bcc7191dd7c833f873d.tar.bz2 |
Cygwin: Teach mklib/minstall to properly install libraries on cygwin
Teach mklib/minstall more about cygwin so libraries are properly installed
Have mklib install the .dll into the lib/ staging directory as well
Have minstall install the .dll into PREFIX/bin at the same time as
installing the .dll.a link library into PREFIX/lib
mklib uses a '-' rather than a '.' as the separator before the version
number in library names on cygwin. Change the install globs so they match
library names like that.
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/minstall | 21 | ||||
-rwxr-xr-x | bin/mklib | 5 |
2 files changed, 25 insertions, 1 deletions
diff --git a/bin/minstall b/bin/minstall index 1300258..094ec0c 100755 --- a/bin/minstall +++ b/bin/minstall @@ -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 @@ -1019,4 +1019,9 @@ if [ ${INSTALLDIR} != "." ] ; then echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR} test -d ${INSTALLDIR} || mkdir -p ${INSTALLDIR} mv ${FINAL_LIBS} ${INSTALLDIR}/ + + if [ "x${FINAL_BINS}" != "x" ] ; then + echo "mklib: Installing" ${FINAL_BINS} "in" ${INSTALLDIR} + mv ${FINAL_BINS} ${INSTALLDIR}/ + fi fi |