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)
108 DEPS
="$DEPS -pthread"
139 echo "mklib: Unknown option: " $1 ;
143 # This should be the first object file, stop parsing
151 if [ ${ARCH} = "auto" ] ; then
159 if [ "x${LIBNAME}" = "x" ] ; then
160 echo "mklib: Error: no library name specified"
163 if [ "x${OBJECTS}" = "x" ] ; then
164 echo "mklib: Error: no object files specified"
173 echo "-----------------"
175 echo LIBNAME is
$LIBNAME
180 echo "EXPORTS in" $EXPORTS
181 echo "-----------------"
186 # OK, make the library now
190 'Linux' |
'OpenBSD' |
'GNU' | GNU
/*)
193 if [ "x$LINK" = "x" ] ; then
194 # -linker was not specified so set default link command now
195 if [ $CPLUSPLUS = 1 ] ; then
202 if [ $NOPREFIX = 1 ] ; then
203 # No "lib" or ".so" part
204 echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}
205 case $ARCH in 'Linux' |
'GNU' | GNU
/*)
206 OPTS
="-Xlinker -Bsymbolic -shared"
213 # Check if objects are 32-bit and we're running in 64-bit
214 # environment. If so, pass -m32 flag to linker.
216 ABI32
=`file $1 | grep 32-bit`
217 if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
223 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
225 FINAL_LIBS
="${LIBNAME}"
226 elif [ $STATIC = 1 ] ; then
227 LIBNAME
="lib${LIBNAME}.a" # prefix with "lib", suffix with ".a"
228 echo "mklib: Making" $ARCH "static library: " ${LIBNAME}
233 ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
236 FINAL_LIBS
=${LIBNAME}
238 LIBNAME
="lib${LIBNAME}" # prefix with "lib"
239 case $ARCH in 'Linux' |
'GNU' | GNU
/*)
240 OPTS
="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
243 OPTS
="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
246 if [ $EXPORTS ] ; then
247 #OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
248 # Make the 'exptmp' file for --version-script option
250 echo "global:" >> exptmp
251 sed 's/$/;/' ${EXPORTS} >> exptmp
252 echo "local:" >> exptmp
255 OPTS
="${OPTS} -Xlinker --version-script=exptmp"
256 # exptmp is removed below
259 # Check if objects are 32-bit and we're running in 64-bit
260 # environment. If so, pass -m32 flag to linker.
262 ABI32
=`file $1 | grep 32-bit`
263 if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
267 if [ x
${PATCH} = "x" ] ; then
268 VERSION
="${MAJOR}.${MINOR}"
270 VERSION
="${MAJOR}.${MINOR}.${PATCH}"
273 echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}.so.
${VERSION}
276 rm -f ${LIBNAME}.so.
${VERSION}
277 rm -f ${LIBNAME}.so.
${MAJOR}
281 ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
282 # make usual symlinks
283 ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
284 ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
286 FINAL_LIBS
="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so"
292 if [ $STATIC = 1 ] ; then
293 LIBNAME
="lib${LIBNAME}.a"
294 echo "mklib: Making SunOS static library: " ${LIBNAME}
296 ar -ruv ${LIBNAME} ${OBJECTS}
297 FINAL_LIBS
=${LIBNAME}
299 if [ $NOPREFIX = 0 ] ; then
300 LIBNAME
="lib${LIBNAME}.so"
302 echo "mklib: Making SunOS shared library: " ${LIBNAME}
304 if [ "x$LINK" = "x" ] ; then
305 # -linker was not specified, choose default linker now
306 if [ $CPLUSPLUS = 1 ] ; then
307 # determine linker and options for C++ code
308 if [ `which c++` ] ; then
311 elif [ `type g++` ] ; then
315 echo "mklib: warning: can't find C++ comiler, trying CC."
319 # use native Sun linker for C code
325 if [ ${LINK} = "ld" -o ${LINK} = "cc" -o ${LINK} = "CC" ] ; then
326 # SunOS tools, -G to make shared libs
330 # Check if objects are 32-bit and we're running in 64-bit
331 # environment. If so, pass -m32 flag to linker.
333 ABI32
=`file $1 | grep 32-bit`
334 if [ "${ABI32}" ] ; then
335 OPTS
="-m32 -shared -Wl,-Bdynamic"
337 OPTS
="-m64 -shared -Wl,-Bdynamic"
341 # Check if objects are SPARC v9
342 # file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
344 SPARCV9
=`file $1 | grep SPARCV9`
345 if [ "${SPARCV9}" ] ; then
346 OPTS
="${OPTS} -xarch=v9"
350 #echo "mklib: linker is" ${LINK} ${OPTS}
351 if [ $NOPREFIX = 1 ] ; then
353 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
355 rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
356 ${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
357 ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
359 FINAL_LIBS
="${LIBNAME}.${MAJOR} ${LIBNAME}"
366 if [ "x$LINK" = "x" ] ; then
367 # -linker was not specified so set default link command now
368 if [ $CPLUSPLUS = 1 ] ; then
375 if [ $NOPREFIX = 1 ] ; then
376 # No "lib" or ".so" part
377 echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
380 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
381 FINAL_LIBS
=${LIBNAME}
382 elif [ $STATIC = 1 ] ; then
383 STLIB
="lib${LIBNAME}.a"
384 echo "mklib: Making FreeBSD static library: " ${STLIB}
386 ar cq
${STLIB} ${OBJECTS}
390 SHLIB
="lib${LIBNAME}.so.${MAJOR}"
391 OPTS
="-shared -Wl,-soname,${SHLIB}"
392 echo "mklib: Making FreeBSD shared library: " ${SHLIB}
394 ${LINK} ${OPTS} -o ${SHLIB} ${OBJECTS} ${DEPS}
395 ln -sf ${SHLIB} "lib${LIBNAME}.so"
396 FINAL_LIBS
="${SHLIB} lib${LIBNAME}.so"
401 if [ $STATIC = 1 ] ; then
402 LIBNAME
="lib${LIBNAME}_pic.a"
403 echo "mklib: Making NetBSD PIC static library: " ${LIBNAME}
405 ar cq
${LIBNAME} ${OBJECTS}
407 FINAL_LIBS
=${LIBNAME}
409 LIBNAME
="lib${LIBNAME}.so.${MAJOR}.${MINOR}"
410 echo "mklib: Making NetBSD PIC shared library: " ${LIBNAME}
412 ld
-x -Bshareable -Bforcearchive -o ${LIBNAME} ${OBJECTS}
413 FINAL_LIBS
=${LIBNAME}
418 if [ $STATIC = 1 ] ; then
419 LIBNAME
="lib${LIBNAME}.a"
421 ar rc
${LIBNAME} ${OBJECTS}
422 FINAL_LIBS
=${LIBNAME}
424 LIBNAME
="lib${LIBNAME}.so" # prefix with "lib", suffix with ".so"
426 # examine first object to determine ABI
428 ABI_O32
=`file $1 | grep 'ELF 32-bit'`
429 ABI_N32
=`file $1 | grep 'ELF N32'`
430 ABI_N64
=`file $1 | grep 'ELF 64-bit'`
431 if [ "${ABI_O32}" ] ; then
432 OPTS
="-32 -shared -all"
434 elif [ "${ABI_N32}" ] ; then
435 OPTS
="-n32 -shared -all"
437 elif [ "${ABI_N64}" ] ; then
438 OPTS
="-64 -shared -all"
441 echo "Error: Unexpected IRIX ABI!"
445 if [ $CPLUSPLUS = 1 ] ; then
451 echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
452 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
453 FINAL_LIBS
=${LIBNAME}
458 LIBNAME
="lib${LIBNAME}.a"
459 echo "mklib: Making linux-cygwin library: " ${LIBNAME}
461 gnuwin32ar ruv
${LIBNAME} ${OBJECTS}
462 FINAL_LIBS
=${LIBNAME}
466 if [ $STATIC = 1 ] ; then
467 LIBNAME
="lib${LIBNAME}.a"
468 echo "mklib: Making HP-UX static library: " ${LIBNAME}
470 ar -ruv ${LIBNAME} ${OBJECTS}
471 FINAL_LIBS
=${LIBNAME}
473 # HP uses a .2 for their current GL/GLU libraries
474 if [ ${LIBNAME} = "GL" -o ${LIBNAME} = "GLU" ] ; then
477 RUNLIB
="lib${LIBNAME}.${MAJOR}"
478 DEVLIB
="lib${LIBNAME}.sl"
479 echo "mklib: Making HP-UX shared library: " ${RUNLIB} ${DEVLIB}
480 ld
-b -o ${RUNLIB} +b ${RUNLIB} ${OBJECTS} ${DEPS}
481 ln -s ${RUNLIB} ${DEVLIB}
482 FINAL_LIBS
="${RUNLIB} ${DEVLIB}"
487 # examine first object to determine ABI
489 ABI_64
=`file $1 | grep '64-bit'`
490 if [ "${ABI_64}" ] ; then
495 OFILE
=shr.o
#Want to be consistent with the IBM libGL.a
498 if [ $STATIC = 1 ] ; then
499 LIBNAME
="lib${LIBNAME}.a"
500 echo "mklib: Making AIX static library: " ${LIBNAME}
501 ar -ruv ${X64} ${LIBNAME} ${OBJECTS}
502 FINAL_LIBS
=${LIBNAME}
504 EXPFILE
="lib${LIBNAME}.exp"
505 LIBNAME
="lib${LIBNAME}.a" # shared objects are still stored in the .a libraries
506 OPTS
="-bE:${EXPFILE} -bM:SRE -bnoentry ${Q64}"
507 rm -f ${EXPFILE} ${OFILE}
508 NM
="/bin/nm -eC ${X64}"
509 echo "#! /usr/lib/${LIBNAME}" > ${EXPFILE}
510 ${NM} ${OBJECTS} |
awk '{
511 if ((($2 == "T") || ($2 == "D") || ($2 == "B")) \
512 && ( substr($1,1,1) != ".")) {
513 if (substr ($1, 1, 7) != "__sinit" &&
514 substr ($1, 1, 7) != "__sterm") {
515 if (substr ($1, 1, 5) == "__tf1")
516 print (substr ($1, 7))
517 else if (substr ($1, 1, 5) == "__tf9")
518 print (substr ($1, 15))
523 }' |
sort -u >> ${EXPFILE}
525 # On AIX a shared library is linked differently when
526 # you want to dlopen the file
527 if [ $DLOPEN = "1" ] ; then
528 cc
-G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
530 cc
${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
531 ar ${X64} -r ${LIBNAME} ${OFILE}
534 FINAL_LIBS
="${LIBNAME}"
539 LIBNAME
="lib${LIBNAME}.a"
540 echo "mklib: Making OpenSTEP static library: " ${LIBNAME}
541 libtool
-static -o ${LIBNAME} - ${OBJECTS}
542 FINAL_LIBS
=${LIBNAME}
546 if [ $STATIC = 1 ] ; then
547 LIBNAME
="lib${LIBNAME}.a"
548 echo "mklib: Making OSF/1 static library: " ${LIBNAME}
550 ar -ruv ${LIBNAME} ${OBJECTS}
551 FINAL_LIBS
=${LIBNAME}
553 VERSION
="${MAJOR}.${MINOR}"
554 LIBNAME
="lib${LIBNAME}.so"
555 echo "mklib: Making OSF/1 shared library: " ${LIBNAME}
556 if [ "x$LINK" = "x" ] ; then
557 if [ $CPLUSPLUS = 1 ] ; then
563 rm -f ${LIBNAME}.
${VERSION}
564 ${LINK} -o ${LIBNAME}.${VERSION} -shared -set_version ${VERSION} -soname ${LIBNAME}.${VERSION} -expect_unresolved \* -all ${OBJECTS} ${DEPS}
565 ln -sf ${LIBNAME}.${VERSION} ${LIBNAME}
566 FINAL_LIBS
="${LIBNAME} ${LIBNAME}.${VERSION}"
571 if [ $STATIC = 1 ] ; then
572 LIBNAME
="lib${LIBNAME}.a"
573 echo "mklib: Making Darwin static library: " ${LIBNAME}
576 ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
577 FINAL_LIBS
=${LIBNAME}
579 # On Darwin a .bundle is used for a library that you want to dlopen
580 if [ $DLOPEN = "1" ] ; then
582 OPTS
="${ARCHOPT} -bundle -multiply_defined suppress"
585 OPTS
="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
587 LINKNAME
="lib${LIBNAME}.${LIBSUFFIX}"
588 LIBNAME
="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
590 # examine first object to determine ABI
592 ABI_PPC
=`file $1 | grep 'object ppc'`
593 ABI_I386
=`file $1 | grep 'object i386'`
594 if [ "${ABI_PPC}" ] ; then
595 OPTS
="${OPTS} -arch ppc"
597 if [ "${ABI_I386}" ] ; then
598 OPTS
="${OPTS} -arch i386"
601 # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk
605 if [ $CPLUSPLUS = 1 ] ; then
611 echo "mklib: Making Darwin shared library: " ${LIBNAME}
612 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
613 ln -s ${LIBNAME} ${LINKNAME}
614 FINAL_LIBS
="${LIBNAME} ${LINKNAME}"
619 LIBNAME
="lib${LIBNAME}.a"
620 echo "mklib: Making LynxOS static library: " ${LIBNAME}
622 ar ru
${LIBNAME} ${OBJECTS}
623 FINAL_LIBS
=${LIBNAME}
627 if [ $STATIC = 1 ] ; then
628 LIBNAME
="lib${LIBNAME}.a"
629 echo "mklib: Making BeOS static library: " ${LIBNAME}
630 ar -cru "${LIBNAME}" ${OBJECTS}
632 LIBNAME
="lib${LIBNAME}.so"
633 echo "mklib: Making BeOS shared library: " ${LIBNAME}
634 gcc
-nostart -Xlinker "-soname=${LIBNAME}" -L/Be/develop/lib/x86 -lbe ${DEPS} ${OBJECTS} -o "${LIBNAME}"
635 mimeset
-f "${LIBNAME}"
636 # XXX remove the Mesa3D stuff here since mklib isn't mesa-specific.
637 setversion
"${LIBNAME}" -app ${MAJOR} ${MINOR} ${PATCH} -short "Powered by Mesa3D
!" -long "Powered by Mesa3D
!"
639 FINAL_LIBS=${LIBNAME}
643 LIBNAME="lib
${LIBNAME}.a
"
644 echo "mklib
: Making QNX library
: " ${LIBNAME}
645 wlib ${LIBNAME} ${OBJECTS}
646 FINAL_LIBS=${LIBNAME}
650 LIBNAME="lib
${LIBNAME}.a
"
651 echo "mklib
: Making MorphOS library
: " ${LIBNAME}
652 ppc-morphos-ar rc ${LIBNAME} ${OBJECTS}
653 FINAL_LIBS="${LIBNAME}"
656 'icc' | 'icc-istatic')
658 # This should get merged into the Linux code, above, since this isn't
659 # really a different architecture.
660 LIBNAME="lib
${LIBNAME}" # prefix with "lib
"
662 if [ $STATIC = 1 ] ; then
663 echo "mklib
: Making Intel ICC static library
: " ${LIBNAME}.a
667 ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
669 FINAL_LIBS="${LIBNAME}.a
"
671 if [ $ARCH = icc-istatic ] ; then
672 OPTS="-shared -i-static -cxxlib-icc"
676 VERSION="${MAJOR}.${MINOR}.${PATCH}"
677 echo "mklib
: Making Intel ICC shared library
: " ${LIBNAME}.so.${VERSION}
679 if [ $CPLUSPLUS = 1 ] ; then
685 rm -f ${LIBNAME}.so.${VERSION}
686 rm -f ${LIBNAME}.so.${MAJOR}
689 ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
690 # make usual symlinks
691 ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
692 ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
694 FINAL_LIBS="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
"
700 if [ $STATIC = 1 ] ; then
701 LIBNAME="lib
${LIBNAME}.a
"
702 echo "mklib
: Making AIX GCC static library
: " ${LIBNAME}
704 ar ru ${LIBNAME} ${OBJECTS}
705 FINAL_LIBS=${LIBNAME}
707 LIBNAME="lib
${LIBNAME}.so
" # prefix with "lib
", suffix with ".so
"
708 echo "mklib
: Making AIX GCC shared library
: " ${LIBNAME}
712 gcc -shared -Wl,-G ${OBJECTS} ${DEPS} -o ${LIBNAME}
713 # NOTE: the application linking with this library must specify
714 # the -Wl,-brtl flags to gcc
715 FINAL_LIBS=${LIBNAME}
721 if [ $STATIC = 0 ] ; then
722 echo "mklib
: Warning shared libs not supported on Ultrix
"
724 LIBNAME="lib
${LIBNAME}.a
"
725 echo "mklib
: Making static library
for Ultrix
: " ${LIBNAME}
727 ar ru ${LIBNAME} ${OBJECTS}
728 FINAL_LIBS="${LIBNAME}"
732 # GCC-based environment
733 CYGNAME="cyg
${LIBNAME}" # prefix with "cyg
"
734 LIBNAME="lib
${LIBNAME}" # prefix with "lib
"
736 if [ $STATIC = 1 ] ; then
737 echo "mklib
: Making
" $ARCH "static library
: " ${LIBNAME}.a
741 ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
744 FINAL_LIBS=${LIBNAME}.a
746 OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a
"
747 echo "mklib
: Making
" $ARCH "shared library
: " ${LIBNAME}-${MAJOR}.dll
749 if [ $CPLUSPLUS = 1 ] ; then
756 rm -f ${LIBNAME}-${MAJOR}.dll
757 rm -f ${LIBNAME}.dll.a
761 ${LINK} ${OPTS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
762 # make usual symlinks
763 ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
765 FINAL_LIBS="${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
"
766 # special case for installing in bin
767 FINAL_BINS="${CYGNAME}-${MAJOR}.dll
"
772 # If you're adding support for a new architecture, you can
774 if [ $STATIC = 1 ] ; then
775 LIBNAME="lib
${LIBNAME}.a
"
776 echo "mklib
: Making static library
for example arch
: " ${LIBNAME}
778 ar rv ${LIBNAME} ${OBJECTS}
779 FINAL_LIBS="${LIBNAME}"
781 LIBNAME="lib
${LIBNAME}.so
" # prefix with "lib
", suffix with ".so
"
782 echo "mklib
: Making shared library
for example arch
: " ${LIBNAME}
783 ld -o ${LIBNAME} ${OBJECTS} ${DEPS}
784 FINAL_LIBS="${LIBNAME}"
789 echo "mklib
: ERROR
: Don
't know how to make a static/shared library for" ${ARCH}
790 echo "mklib: Please add necessary commands to mklib script."
796 # Put library files into installation directory if specified.
798 if [ ${INSTALLDIR} != "." ] ; then
799 echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
800 mv ${FINAL_LIBS} ${INSTALLDIR}/