3 # Make a shared library.
4 # This script should be useful for projects other than Mesa.
5 # Improvements/fixes are welcome.
8 # Copyright (C) 1999-2006 Brian Paul All Rights Reserved.
10 # Permission is hereby granted, free of charge, to any person obtaining a
11 # copy of this software and associated documentation files (the "Software"),
12 # to deal in the Software without restriction, including without limitation
13 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 # and/or sell copies of the Software, and to permit persons to whom the
15 # Software is furnished to do so, subject to the following conditions:
17 # The above copyright notice and this permission notice shall be included
18 # in all copies or substantial portions of the Software.
20 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23 # BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
24 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
25 # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
54 echo 'Usage: mklib [options] objects'
55 echo 'Create a shared library from object files.'
56 echo ' -o LIBRARY specifies the name of the resulting library, without'
57 echo ' the leading "lib" or any suffix.'
58 echo ' (eg: "-o GL" might result in "libGL.so" being made)'
59 echo ' -major N specifies major version number (default is 1)'
60 echo ' -minor N specifies minor version number (default is 0)'
61 echo ' -patch N specifies patch version number (default is 0)'
62 echo ' -lLIBRARY specifies a dependency on LIBRARY'
63 echo ' -LDIR search in DIR for library dependencies'
64 echo ' -linker L explicity specify the linker program to use (eg: gcc, g++)'
65 echo ' Not observed on all systems at this time.'
66 echo ' -cplusplus link with C++ runtime'
67 echo ' -static make a static library (default is dynamic/shared)'
68 echo ' -dlopen make a shared library suitable for dynamic loading'
69 echo ' -install DIR put resulting library file(s) in DIR'
70 echo ' -arch ARCH override using `uname` to determine host system'
71 echo ' -archopt OPT specify an extra achitecture-specific option OPT'
72 echo " -noprefix don't prefix library name with 'lib' nor add any suffix"
73 echo ' -exports FILE only export the symbols listed in FILE'
74 echo ' -h, --help display this information and exit'
104 # this is a special case (see bugzilla 10876)
136 echo "mklib: Unknown option: " $1 ;
140 # This should be the first object file, stop parsing
148 if [ ${ARCH} = "auto" ] ; then
156 if [ "x${LIBNAME}" = "x" ] ; then
157 echo "mklib: Error: no library name specified"
160 if [ "x${OBJECTS}" = "x" ] ; then
161 echo "mklib: Error: no object files specified"
170 echo "-----------------"
172 echo LIBNAME is
$LIBNAME
177 echo "EXPORTS in" $EXPORTS
178 echo "-----------------"
183 # OK, make the library now
187 'Linux' |
'OpenBSD' |
'GNU' | GNU
/*)
190 if [ "x$LINK" = "x" ] ; then
191 # -linker was not specified so set default link command now
192 if [ $CPLUSPLUS = 1 ] ; then
199 if [ $NOPREFIX = 1 ] ; then
200 # No "lib" or ".so" part
201 echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}
202 #OPTS="-shared -Wl,-soname,${LIBNAME}" # soname???
205 # Check if objects are 32-bit and we're running in 64-bit
206 # environment. If so, pass -m32 flag to linker.
208 ABI32
=`file $1 | grep 32-bit`
209 if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
215 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
217 FINAL_LIBS
="${LIBNAME}"
218 elif [ $STATIC = 1 ] ; then
219 LIBNAME
="lib${LIBNAME}.a" # prefix with "lib", suffix with ".a"
220 echo "mklib: Making" $ARCH "static library: " ${LIBNAME}
225 ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
228 FINAL_LIBS
=${LIBNAME}
230 LIBNAME
="lib${LIBNAME}" # prefix with "lib"
231 case $ARCH in 'Linux' |
'GNU' | GNU
/*)
232 OPTS
="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
235 OPTS
="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
238 if [ $EXPORTS ] ; then
239 #OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
240 # Make the 'exptmp' file for --version-script option
241 echo "VERSION_${MAJOR}.${MINOR} {" > exptmp
242 echo "global:" >> exptmp
243 sed 's/$/;/' ${EXPORTS} >> exptmp
244 echo "local:" >> exptmp
247 OPTS
="${OPTS} -Xlinker --version-script=exptmp"
248 # exptmp is removed below
251 # Check if objects are 32-bit and we're running in 64-bit
252 # environment. If so, pass -m32 flag to linker.
254 ABI32
=`file $1 | grep 32-bit`
255 if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
259 if [ x
${PATCH} = "x" ] ; then
260 VERSION
="${MAJOR}.${MINOR}"
262 VERSION
="${MAJOR}.${MINOR}.${PATCH}"
265 echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}.so.
${VERSION}
268 rm -f ${LIBNAME}.so.
${VERSION}
269 rm -f ${LIBNAME}.so.
${MAJOR}
273 ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
274 # make usual symlinks
275 ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
276 ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
278 FINAL_LIBS
="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so"
284 if [ $STATIC = 1 ] ; then
285 LIBNAME
="lib${LIBNAME}.a"
286 echo "mklib: Making SunOS static library: " ${LIBNAME}
288 ar -ruv ${LIBNAME} ${OBJECTS}
289 FINAL_LIBS
=${LIBNAME}
291 if [ $NOPREFIX = 0 ] ; then
292 LIBNAME
="lib${LIBNAME}.so"
294 echo "mklib: Making SunOS shared library: " ${LIBNAME}
296 if [ "x$LINK" = "x" ] ; then
297 # -linker was not specified, choose default linker now
298 if [ $CPLUSPLUS = 1 ] ; then
299 # determine linker and options for C++ code
300 if [ `which c++` ] ; then
303 elif [ `type g++` ] ; then
307 echo "mklib: warning: can't find C++ comiler, trying CC."
311 # use native Sun linker for C code
317 if [ ${LINK} = "ld" -o ${LINK} = "cc" -o ${LINK} = "CC" ] ; then
318 # SunOS tools, -G to make shared libs
322 # Check if objects are 32-bit and we're running in 64-bit
323 # environment. If so, pass -m32 flag to linker.
325 ABI32
=`file $1 | grep 32-bit`
326 if [ "${ABI32}" ] ; then
327 OPTS
="-m32 -shared -Wl,-Bdynamic"
329 OPTS
="-m64 -shared -Wl,-Bdynamic"
333 # Check if objects are SPARC v9
334 # file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
336 SPARCV9
=`file $1 | grep SPARCV9`
337 if [ "${SPARCV9}" ] ; then
338 OPTS
="${OPTS} -xarch=v9"
342 #echo "mklib: linker is" ${LINK} ${OPTS}
343 if [ $NOPREFIX = 1 ] ; then
345 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
347 rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
348 ${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
349 ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
351 FINAL_LIBS
="${LIBNAME}.${MAJOR} ${LIBNAME}"
358 if [ "x$LINK" = "x" ] ; then
359 # -linker was not specified so set default link command now
360 if [ $CPLUSPLUS = 1 ] ; then
367 if [ $NOPREFIX = 1 ] ; then
368 # No "lib" or ".so" part
369 echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
372 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
373 FINAL_LIBS
=${LIBNAME}
374 elif [ $STATIC = 1 ] ; then
375 STLIB
="lib${LIBNAME}.a"
376 echo "mklib: Making FreeBSD static library: " ${STLIB}
378 ar cq
${STLIB} ${OBJECTS}
382 SHLIB
="lib${LIBNAME}.so.${MAJOR}"
383 OPTS
="-shared -Wl,-soname,${SHLIB}"
384 echo "mklib: Making FreeBSD shared library: " ${SHLIB}
386 ${LINK} ${OPTS} -o ${SHLIB} ${OBJECTS} ${DEPS}
387 ln -sf ${SHLIB} "lib${LIBNAME}.so"
388 FINAL_LIBS
="${SHLIB} lib${LIBNAME}.so"
393 if [ $STATIC = 1 ] ; then
394 LIBNAME
="lib${LIBNAME}_pic.a"
395 echo "mklib: Making NetBSD PIC static library: " ${LIBNAME}
397 ar cq
${LIBNAME} ${OBJECTS}
399 FINAL_LIBS
=${LIBNAME}
401 LIBNAME
="lib${LIBNAME}.so.${MAJOR}.${MINOR}"
402 echo "mklib: Making NetBSD PIC shared library: " ${LIBNAME}
404 ld
-x -Bshareable -Bforcearchive -o ${LIBNAME} ${OBJECTS}
405 FINAL_LIBS
=${LIBNAME}
410 if [ $STATIC = 1 ] ; then
411 LIBNAME
="lib${LIBNAME}.a"
413 ar rc
${LIBNAME} ${OBJECTS}
414 FINAL_LIBS
=${LIBNAME}
416 LIBNAME
="lib${LIBNAME}.so" # prefix with "lib", suffix with ".so"
418 # examine first object to determine ABI
420 ABI_O32
=`file $1 | grep 'ELF 32-bit'`
421 ABI_N32
=`file $1 | grep 'ELF N32'`
422 ABI_N64
=`file $1 | grep 'ELF 64-bit'`
423 if [ "${ABI_O32}" ] ; then
424 OPTS
="-32 -shared -all"
426 elif [ "${ABI_N32}" ] ; then
427 OPTS
="-n32 -shared -all"
429 elif [ "${ABI_N64}" ] ; then
430 OPTS
="-64 -shared -all"
433 echo "Error: Unexpected IRIX ABI!"
437 if [ $CPLUSPLUS = 1 ] ; then
443 echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
444 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
445 FINAL_LIBS
=${LIBNAME}
450 LIBNAME
="lib${LIBNAME}.a"
451 echo "mklib: Making linux-cygwin library: " ${LIBNAME}
453 gnuwin32ar ruv
${LIBNAME} ${OBJECTS}
454 FINAL_LIBS
=${LIBNAME}
458 if [ $STATIC = 1 ] ; then
459 LIBNAME
="lib${LIBNAME}.a"
460 echo "mklib: Making HP-UX static library: " ${LIBNAME}
462 ar -ruv ${LIBNAME} ${OBJECTS}
463 FINAL_LIBS
=${LIBNAME}
465 # HP uses a .2 for their current GL/GLU libraries
466 if [ ${LIBNAME} = "GL" -o ${LIBNAME} = "GLU" ] ; then
469 RUNLIB
="lib${LIBNAME}.${MAJOR}"
470 DEVLIB
="lib${LIBNAME}.sl"
471 echo "mklib: Making HP-UX shared library: " ${RUNLIB} ${DEVLIB}
472 ld
-b -o ${RUNLIB} +b ${RUNLIB} ${OBJECTS} ${DEPS}
473 ln -s ${RUNLIB} ${DEVLIB}
474 FINAL_LIBS
="${RUNLIB} ${DEVLIB}"
479 # examine first object to determine ABI
481 ABI_64
=`file $1 | grep '64-bit'`
482 if [ "${ABI_64}" ] ; then
487 OFILE
=shr.o
#Want to be consistent with the IBM libGL.a
490 if [ $STATIC = 1 ] ; then
491 LIBNAME
="lib${LIBNAME}.a"
492 echo "mklib: Making AIX static library: " ${LIBNAME}
493 ar -ruv ${X64} ${LIBNAME} ${OBJECTS}
494 FINAL_LIBS
=${LIBNAME}
496 EXPFILE
="lib${LIBNAME}.exp"
497 LIBNAME
="lib${LIBNAME}.a" # shared objects are still stored in the .a libraries
498 OPTS
="-bE:${EXPFILE} -bM:SRE -bnoentry ${Q64}"
499 rm -f ${EXPFILE} ${OFILE}
500 NM
="/bin/nm -eC ${X64}"
501 echo "#! /usr/lib/${LIBNAME}" > ${EXPFILE}
502 ${NM} ${OBJECTS} |
awk '{
503 if ((($2 == "T") || ($2 == "D") || ($2 == "B")) \
504 && ( substr($1,1,1) != ".")) {
505 if (substr ($1, 1, 7) != "__sinit" &&
506 substr ($1, 1, 7) != "__sterm") {
507 if (substr ($1, 1, 5) == "__tf1")
508 print (substr ($1, 7))
509 else if (substr ($1, 1, 5) == "__tf9")
510 print (substr ($1, 15))
515 }' |
sort -u >> ${EXPFILE}
517 # On AIX a shared library is linked differently when
518 # you want to dlopen the file
519 if [ $DLOPEN = "1" ] ; then
520 cc
-G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
522 cc
${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
523 ar ${X64} -r ${LIBNAME} ${OFILE}
526 FINAL_LIBS
="${LIBNAME}"
531 LIBNAME
="lib${LIBNAME}.a"
532 echo "mklib: Making OpenSTEP static library: " ${LIBNAME}
533 libtool
-static -o ${LIBNAME} - ${OBJECTS}
534 FINAL_LIBS
=${LIBNAME}
538 if [ $STATIC = 1 ] ; then
539 LIBNAME
="lib${LIBNAME}.a"
540 echo "mklib: Making OSF/1 static library: " ${LIBNAME}
542 ar -ruv ${LIBNAME} ${OBJECTS}
543 FINAL_LIBS
=${LIBNAME}
545 VERSION
="${MAJOR}.${MINOR}"
546 LIBNAME
="lib${LIBNAME}.so"
547 echo "mklib: Making OSF/1 shared library: " ${LIBNAME}
548 if [ "x$LINK" = "x" ] ; then
549 if [ $CPLUSPLUS = 1 ] ; then
555 rm -f ${LIBNAME}.
${VERSION}
556 ${LINK} -o ${LIBNAME}.${VERSION} -shared -set_version ${VERSION} -soname ${LIBNAME}.${VERSION} -expect_unresolved \* -all ${OBJECTS} ${DEPS}
557 ln -sf ${LIBNAME}.${VERSION} ${LIBNAME}
558 FINAL_LIBS
="${LIBNAME} ${LIBNAME}.${VERSION}"
563 if [ $STATIC = 1 ] ; then
564 LIBNAME
="lib${LIBNAME}.a"
565 echo "mklib: Making Darwin static library: " ${LIBNAME}
568 ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
569 FINAL_LIBS
=${LIBNAME}
571 # On Darwin a .bundle is used for a library that you want to dlopen
572 if [ $DLOPEN = "1" ] ; then
574 OPTS
="${ARCHOPT} -bundle -multiply_defined suppress"
577 OPTS
="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
579 LINKNAME
="lib${LIBNAME}.${LIBSUFFIX}"
580 LIBNAME
="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
582 # examine first object to determine ABI
584 ABI_PPC
=`file $1 | grep 'object ppc'`
585 ABI_I386
=`file $1 | grep 'object i386'`
586 if [ "${ABI_PPC}" ] ; then
587 OPTS
="${OPTS} -arch ppc"
589 if [ "${ABI_I386}" ] ; then
590 OPTS
="${OPTS} -arch i386"
593 # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk
597 if [ $CPLUSPLUS = 1 ] ; then
603 echo "mklib: Making Darwin shared library: " ${LIBNAME}
604 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
605 ln -s ${LIBNAME} ${LINKNAME}
606 FINAL_LIBS
="${LIBNAME} ${LINKNAME}"
611 LIBNAME
="lib${LIBNAME}.a"
612 echo "mklib: Making LynxOS static library: " ${LIBNAME}
614 ar ru
${LIBNAME} ${OBJECTS}
615 FINAL_LIBS
=${LIBNAME}
619 if [ $STATIC = 1 ] ; then
620 LIBNAME
="lib${LIBNAME}.a"
621 echo "mklib: Making BeOS static library: " ${LIBNAME}
622 ar -cru "${LIBNAME}" ${OBJECTS}
624 LIBNAME
="lib${LIBNAME}.so"
625 echo "mklib: Making BeOS shared library: " ${LIBNAME}
626 gcc
-nostart -Xlinker "-soname=${LIBNAME}" -L/Be/develop/lib/x86 -lbe ${DEPS} ${OBJECTS} -o "${LIBNAME}"
627 mimeset
-f "${LIBNAME}"
628 # XXX remove the Mesa3D stuff here since mklib isn't mesa-specific.
629 setversion
"${LIBNAME}" -app ${MAJOR} ${MINOR} ${PATCH} -short "Powered by Mesa3D
!" -long "Powered by Mesa3D
!"
631 FINAL_LIBS=${LIBNAME}
635 LIBNAME="lib
${LIBNAME}.a
"
636 echo "mklib
: Making QNX library
: " ${LIBNAME}
637 wlib ${LIBNAME} ${OBJECTS}
638 FINAL_LIBS=${LIBNAME}
642 LIBNAME="lib
${LIBNAME}.a
"
643 echo "mklib
: Making MorphOS library
: " ${LIBNAME}
644 ppc-morphos-ar rc ${LIBNAME} ${OBJECTS}
645 FINAL_LIBS="${LIBNAME}"
648 'icc' | 'icc-istatic')
650 # This should get merged into the Linux code, above, since this isn't
651 # really a different architecture.
652 LIBNAME="lib
${LIBNAME}" # prefix with "lib
"
654 if [ $STATIC = 1 ] ; then
655 echo "mklib
: Making Intel ICC static library
: " ${LIBNAME}.a
659 ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
661 FINAL_LIBS="${LIBNAME}.a
"
663 if [ $ARCH = icc-istatic ] ; then
664 OPTS="-shared -i-static -cxxlib-icc"
668 VERSION="${MAJOR}.${MINOR}.${PATCH}"
669 echo "mklib
: Making Intel ICC shared library
: " ${LIBNAME}.so.${VERSION}
671 if [ $CPLUSPLUS = 1 ] ; then
677 rm -f ${LIBNAME}.so.${VERSION}
678 rm -f ${LIBNAME}.so.${MAJOR}
681 ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
682 # make usual symlinks
683 ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
684 ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
686 FINAL_LIBS="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
"
692 if [ $STATIC = 1 ] ; then
693 LIBNAME="lib
${LIBNAME}.a
"
694 echo "mklib
: Making AIX GCC static library
: " ${LIBNAME}
696 ar ru ${LIBNAME} ${OBJECTS}
697 FINAL_LIBS=${LIBNAME}
699 LIBNAME="lib
${LIBNAME}.so
" # prefix with "lib
", suffix with ".so
"
700 echo "mklib
: Making AIX GCC shared library
: " ${LIBNAME}
704 gcc -shared -Wl,-G ${OBJECTS} ${DEPS} -o ${LIBNAME}
705 # NOTE: the application linking with this library must specify
706 # the -Wl,-brtl flags to gcc
707 FINAL_LIBS=${LIBNAME}
713 if [ $STATIC = 0 ] ; then
714 echo "mklib
: Warning shared libs not supported on Ultrix
"
716 LIBNAME="lib
${LIBNAME}.a
"
717 echo "mklib
: Making static library
for Ultrix
: " ${LIBNAME}
719 ar ru ${LIBNAME} ${OBJECTS}
720 FINAL_LIBS="${LIBNAME}"
724 # GCC-based environment
725 CYGNAME="cyg
${LIBNAME}" # prefix with "cyg
"
726 LIBNAME="lib
${LIBNAME}" # prefix with "lib
"
728 if [ $STATIC = 1 ] ; then
729 echo "mklib
: Making
" $ARCH "static library
: " ${LIBNAME}.a
733 ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
736 FINAL_LIBS=${LIBNAME}.a
738 OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a
"
739 echo "mklib
: Making
" $ARCH "shared library
: " ${LIBNAME}-${MAJOR}.dll
741 if [ $CPLUSPLUS = 1 ] ; then
748 rm -f ${LIBNAME}-${MAJOR}.dll
749 rm -f ${LIBNAME}.dll.a
753 ${LINK} ${OPTS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
754 # make usual symlinks
755 ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
757 FINAL_LIBS="${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
"
758 # special case for installing in bin
759 FINAL_BINS="${CYGNAME}-${MAJOR}.dll
"
764 # If you're adding support for a new architecture, you can
766 if [ $STATIC = 1 ] ; then
767 LIBNAME="lib
${LIBNAME}.a
"
768 echo "mklib
: Making static library
for example arch
: " ${LIBNAME}
770 ar rv ${LIBNAME} ${OBJECTS}
771 FINAL_LIBS="${LIBNAME}"
773 LIBNAME="lib
${LIBNAME}.so
" # prefix with "lib
", suffix with ".so
"
774 echo "mklib
: Making shared library
for example arch
: " ${LIBNAME}
775 ld -o ${LIBNAME} ${OBJECTS} ${DEPS}
776 FINAL_LIBS="${LIBNAME}"
781 echo "mklib
: ERROR
: Don
't know how to make a static/shared library for" ${ARCH}
782 echo "mklib: Please add necessary commands to mklib script."
788 # Put library files into installation directory if specified.
790 if [ ${INSTALLDIR} != "." ] ; then
791 echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
792 mv ${FINAL_LIBS} ${INSTALLDIR}/