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 #OPTS="-shared -Wl,-soname,${LIBNAME}" # soname???
208 # Check if objects are 32-bit and we're running in 64-bit
209 # environment. If so, pass -m32 flag to linker.
211 ABI32
=`file $1 | grep 32-bit`
212 if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
218 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
220 FINAL_LIBS
="${LIBNAME}"
221 elif [ $STATIC = 1 ] ; then
222 LIBNAME
="lib${LIBNAME}.a" # prefix with "lib", suffix with ".a"
223 echo "mklib: Making" $ARCH "static library: " ${LIBNAME}
228 ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
231 FINAL_LIBS
=${LIBNAME}
233 LIBNAME
="lib${LIBNAME}" # prefix with "lib"
234 case $ARCH in 'Linux' |
'GNU' | GNU
/*)
235 OPTS
="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
238 OPTS
="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}"
241 if [ $EXPORTS ] ; then
242 #OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}"
243 # Make the 'exptmp' file for --version-script option
244 echo "VERSION_${MAJOR}.${MINOR} {" > exptmp
245 echo "global:" >> exptmp
246 sed 's/$/;/' ${EXPORTS} >> exptmp
247 echo "local:" >> exptmp
250 OPTS
="${OPTS} -Xlinker --version-script=exptmp"
251 # exptmp is removed below
254 # Check if objects are 32-bit and we're running in 64-bit
255 # environment. If so, pass -m32 flag to linker.
257 ABI32
=`file $1 | grep 32-bit`
258 if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then
262 if [ x
${PATCH} = "x" ] ; then
263 VERSION
="${MAJOR}.${MINOR}"
265 VERSION
="${MAJOR}.${MINOR}.${PATCH}"
268 echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}.so.
${VERSION}
271 rm -f ${LIBNAME}.so.
${VERSION}
272 rm -f ${LIBNAME}.so.
${MAJOR}
276 ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
277 # make usual symlinks
278 ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
279 ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
281 FINAL_LIBS
="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so"
287 if [ $STATIC = 1 ] ; then
288 LIBNAME
="lib${LIBNAME}.a"
289 echo "mklib: Making SunOS static library: " ${LIBNAME}
291 ar -ruv ${LIBNAME} ${OBJECTS}
292 FINAL_LIBS
=${LIBNAME}
294 if [ $NOPREFIX = 0 ] ; then
295 LIBNAME
="lib${LIBNAME}.so"
297 echo "mklib: Making SunOS shared library: " ${LIBNAME}
299 if [ "x$LINK" = "x" ] ; then
300 # -linker was not specified, choose default linker now
301 if [ $CPLUSPLUS = 1 ] ; then
302 # determine linker and options for C++ code
303 if [ `which c++` ] ; then
306 elif [ `type g++` ] ; then
310 echo "mklib: warning: can't find C++ comiler, trying CC."
314 # use native Sun linker for C code
320 if [ ${LINK} = "ld" -o ${LINK} = "cc" -o ${LINK} = "CC" ] ; then
321 # SunOS tools, -G to make shared libs
325 # Check if objects are 32-bit and we're running in 64-bit
326 # environment. If so, pass -m32 flag to linker.
328 ABI32
=`file $1 | grep 32-bit`
329 if [ "${ABI32}" ] ; then
330 OPTS
="-m32 -shared -Wl,-Bdynamic"
332 OPTS
="-m64 -shared -Wl,-Bdynamic"
336 # Check if objects are SPARC v9
337 # file says: ELF 64-bit MSB relocatable SPARCV9 Version 1
339 SPARCV9
=`file $1 | grep SPARCV9`
340 if [ "${SPARCV9}" ] ; then
341 OPTS
="${OPTS} -xarch=v9"
345 #echo "mklib: linker is" ${LINK} ${OPTS}
346 if [ $NOPREFIX = 1 ] ; then
348 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
350 rm -f ${LIBNAME}.${MAJOR} ${LIBNAME}
351 ${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS}
352 ln -s ${LIBNAME}.${MAJOR} ${LIBNAME}
354 FINAL_LIBS
="${LIBNAME}.${MAJOR} ${LIBNAME}"
361 if [ "x$LINK" = "x" ] ; then
362 # -linker was not specified so set default link command now
363 if [ $CPLUSPLUS = 1 ] ; then
370 if [ $NOPREFIX = 1 ] ; then
371 # No "lib" or ".so" part
372 echo "mklib: Making FreeBSD shared library: " ${LIBNAME}
375 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
376 FINAL_LIBS
=${LIBNAME}
377 elif [ $STATIC = 1 ] ; then
378 STLIB
="lib${LIBNAME}.a"
379 echo "mklib: Making FreeBSD static library: " ${STLIB}
381 ar cq
${STLIB} ${OBJECTS}
385 SHLIB
="lib${LIBNAME}.so.${MAJOR}"
386 OPTS
="-shared -Wl,-soname,${SHLIB}"
387 echo "mklib: Making FreeBSD shared library: " ${SHLIB}
389 ${LINK} ${OPTS} -o ${SHLIB} ${OBJECTS} ${DEPS}
390 ln -sf ${SHLIB} "lib${LIBNAME}.so"
391 FINAL_LIBS
="${SHLIB} lib${LIBNAME}.so"
396 if [ $STATIC = 1 ] ; then
397 LIBNAME
="lib${LIBNAME}_pic.a"
398 echo "mklib: Making NetBSD PIC static library: " ${LIBNAME}
400 ar cq
${LIBNAME} ${OBJECTS}
402 FINAL_LIBS
=${LIBNAME}
404 LIBNAME
="lib${LIBNAME}.so.${MAJOR}.${MINOR}"
405 echo "mklib: Making NetBSD PIC shared library: " ${LIBNAME}
407 ld
-x -Bshareable -Bforcearchive -o ${LIBNAME} ${OBJECTS}
408 FINAL_LIBS
=${LIBNAME}
413 if [ $STATIC = 1 ] ; then
414 LIBNAME
="lib${LIBNAME}.a"
416 ar rc
${LIBNAME} ${OBJECTS}
417 FINAL_LIBS
=${LIBNAME}
419 LIBNAME
="lib${LIBNAME}.so" # prefix with "lib", suffix with ".so"
421 # examine first object to determine ABI
423 ABI_O32
=`file $1 | grep 'ELF 32-bit'`
424 ABI_N32
=`file $1 | grep 'ELF N32'`
425 ABI_N64
=`file $1 | grep 'ELF 64-bit'`
426 if [ "${ABI_O32}" ] ; then
427 OPTS
="-32 -shared -all"
429 elif [ "${ABI_N32}" ] ; then
430 OPTS
="-n32 -shared -all"
432 elif [ "${ABI_N64}" ] ; then
433 OPTS
="-64 -shared -all"
436 echo "Error: Unexpected IRIX ABI!"
440 if [ $CPLUSPLUS = 1 ] ; then
446 echo "mklib: Making IRIX " ${ABI} " shared library: " ${LIBNAME}
447 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
448 FINAL_LIBS
=${LIBNAME}
453 LIBNAME
="lib${LIBNAME}.a"
454 echo "mklib: Making linux-cygwin library: " ${LIBNAME}
456 gnuwin32ar ruv
${LIBNAME} ${OBJECTS}
457 FINAL_LIBS
=${LIBNAME}
461 if [ $STATIC = 1 ] ; then
462 LIBNAME
="lib${LIBNAME}.a"
463 echo "mklib: Making HP-UX static library: " ${LIBNAME}
465 ar -ruv ${LIBNAME} ${OBJECTS}
466 FINAL_LIBS
=${LIBNAME}
468 # HP uses a .2 for their current GL/GLU libraries
469 if [ ${LIBNAME} = "GL" -o ${LIBNAME} = "GLU" ] ; then
472 RUNLIB
="lib${LIBNAME}.${MAJOR}"
473 DEVLIB
="lib${LIBNAME}.sl"
474 echo "mklib: Making HP-UX shared library: " ${RUNLIB} ${DEVLIB}
475 ld
-b -o ${RUNLIB} +b ${RUNLIB} ${OBJECTS} ${DEPS}
476 ln -s ${RUNLIB} ${DEVLIB}
477 FINAL_LIBS
="${RUNLIB} ${DEVLIB}"
482 # examine first object to determine ABI
484 ABI_64
=`file $1 | grep '64-bit'`
485 if [ "${ABI_64}" ] ; then
490 OFILE
=shr.o
#Want to be consistent with the IBM libGL.a
493 if [ $STATIC = 1 ] ; then
494 LIBNAME
="lib${LIBNAME}.a"
495 echo "mklib: Making AIX static library: " ${LIBNAME}
496 ar -ruv ${X64} ${LIBNAME} ${OBJECTS}
497 FINAL_LIBS
=${LIBNAME}
499 EXPFILE
="lib${LIBNAME}.exp"
500 LIBNAME
="lib${LIBNAME}.a" # shared objects are still stored in the .a libraries
501 OPTS
="-bE:${EXPFILE} -bM:SRE -bnoentry ${Q64}"
502 rm -f ${EXPFILE} ${OFILE}
503 NM
="/bin/nm -eC ${X64}"
504 echo "#! /usr/lib/${LIBNAME}" > ${EXPFILE}
505 ${NM} ${OBJECTS} |
awk '{
506 if ((($2 == "T") || ($2 == "D") || ($2 == "B")) \
507 && ( substr($1,1,1) != ".")) {
508 if (substr ($1, 1, 7) != "__sinit" &&
509 substr ($1, 1, 7) != "__sterm") {
510 if (substr ($1, 1, 5) == "__tf1")
511 print (substr ($1, 7))
512 else if (substr ($1, 1, 5) == "__tf9")
513 print (substr ($1, 15))
518 }' |
sort -u >> ${EXPFILE}
520 # On AIX a shared library is linked differently when
521 # you want to dlopen the file
522 if [ $DLOPEN = "1" ] ; then
523 cc
-G ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
525 cc
${OPTS} -o ${OFILE} ${OBJECTS} ${DEPS}
526 ar ${X64} -r ${LIBNAME} ${OFILE}
529 FINAL_LIBS
="${LIBNAME}"
534 LIBNAME
="lib${LIBNAME}.a"
535 echo "mklib: Making OpenSTEP static library: " ${LIBNAME}
536 libtool
-static -o ${LIBNAME} - ${OBJECTS}
537 FINAL_LIBS
=${LIBNAME}
541 if [ $STATIC = 1 ] ; then
542 LIBNAME
="lib${LIBNAME}.a"
543 echo "mklib: Making OSF/1 static library: " ${LIBNAME}
545 ar -ruv ${LIBNAME} ${OBJECTS}
546 FINAL_LIBS
=${LIBNAME}
548 VERSION
="${MAJOR}.${MINOR}"
549 LIBNAME
="lib${LIBNAME}.so"
550 echo "mklib: Making OSF/1 shared library: " ${LIBNAME}
551 if [ "x$LINK" = "x" ] ; then
552 if [ $CPLUSPLUS = 1 ] ; then
558 rm -f ${LIBNAME}.
${VERSION}
559 ${LINK} -o ${LIBNAME}.${VERSION} -shared -set_version ${VERSION} -soname ${LIBNAME}.${VERSION} -expect_unresolved \* -all ${OBJECTS} ${DEPS}
560 ln -sf ${LIBNAME}.${VERSION} ${LIBNAME}
561 FINAL_LIBS
="${LIBNAME} ${LIBNAME}.${VERSION}"
566 if [ $STATIC = 1 ] ; then
567 LIBNAME
="lib${LIBNAME}.a"
568 echo "mklib: Making Darwin static library: " ${LIBNAME}
571 ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
572 FINAL_LIBS
=${LIBNAME}
574 # On Darwin a .bundle is used for a library that you want to dlopen
575 if [ $DLOPEN = "1" ] ; then
577 OPTS
="${ARCHOPT} -bundle -multiply_defined suppress"
580 OPTS
="${ARCHOPT} -dynamiclib -multiply_defined suppress -current_version ${MAJOR}.${MINOR}.0 -compatibility_version ${MAJOR}.${MINOR}.0 -install_name lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
582 LINKNAME
="lib${LIBNAME}.${LIBSUFFIX}"
583 LIBNAME
="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}"
585 # examine first object to determine ABI
587 ABI_PPC
=`file $1 | grep 'object ppc'`
588 ABI_I386
=`file $1 | grep 'object i386'`
589 if [ "${ABI_PPC}" ] ; then
590 OPTS
="${OPTS} -arch ppc"
592 if [ "${ABI_I386}" ] ; then
593 OPTS
="${OPTS} -arch i386"
596 # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk
600 if [ $CPLUSPLUS = 1 ] ; then
606 echo "mklib: Making Darwin shared library: " ${LIBNAME}
607 ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
608 ln -s ${LIBNAME} ${LINKNAME}
609 FINAL_LIBS
="${LIBNAME} ${LINKNAME}"
614 LIBNAME
="lib${LIBNAME}.a"
615 echo "mklib: Making LynxOS static library: " ${LIBNAME}
617 ar ru
${LIBNAME} ${OBJECTS}
618 FINAL_LIBS
=${LIBNAME}
622 if [ $STATIC = 1 ] ; then
623 LIBNAME
="lib${LIBNAME}.a"
624 echo "mklib: Making BeOS static library: " ${LIBNAME}
625 ar -cru "${LIBNAME}" ${OBJECTS}
627 LIBNAME
="lib${LIBNAME}.so"
628 echo "mklib: Making BeOS shared library: " ${LIBNAME}
629 gcc
-nostart -Xlinker "-soname=${LIBNAME}" -L/Be/develop/lib/x86 -lbe ${DEPS} ${OBJECTS} -o "${LIBNAME}"
630 mimeset
-f "${LIBNAME}"
631 # XXX remove the Mesa3D stuff here since mklib isn't mesa-specific.
632 setversion
"${LIBNAME}" -app ${MAJOR} ${MINOR} ${PATCH} -short "Powered by Mesa3D
!" -long "Powered by Mesa3D
!"
634 FINAL_LIBS=${LIBNAME}
638 LIBNAME="lib
${LIBNAME}.a
"
639 echo "mklib
: Making QNX library
: " ${LIBNAME}
640 wlib ${LIBNAME} ${OBJECTS}
641 FINAL_LIBS=${LIBNAME}
645 LIBNAME="lib
${LIBNAME}.a
"
646 echo "mklib
: Making MorphOS library
: " ${LIBNAME}
647 ppc-morphos-ar rc ${LIBNAME} ${OBJECTS}
648 FINAL_LIBS="${LIBNAME}"
651 'icc' | 'icc-istatic')
653 # This should get merged into the Linux code, above, since this isn't
654 # really a different architecture.
655 LIBNAME="lib
${LIBNAME}" # prefix with "lib
"
657 if [ $STATIC = 1 ] ; then
658 echo "mklib
: Making Intel ICC static library
: " ${LIBNAME}.a
662 ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
664 FINAL_LIBS="${LIBNAME}.a
"
666 if [ $ARCH = icc-istatic ] ; then
667 OPTS="-shared -i-static -cxxlib-icc"
671 VERSION="${MAJOR}.${MINOR}.${PATCH}"
672 echo "mklib
: Making Intel ICC shared library
: " ${LIBNAME}.so.${VERSION}
674 if [ $CPLUSPLUS = 1 ] ; then
680 rm -f ${LIBNAME}.so.${VERSION}
681 rm -f ${LIBNAME}.so.${MAJOR}
684 ${LINK} ${OPTS} -o ${LIBNAME}.so.${VERSION} ${OBJECTS} ${DEPS}
685 # make usual symlinks
686 ln -s ${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR}
687 ln -s ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
689 FINAL_LIBS="${LIBNAME}.so.${VERSION} ${LIBNAME}.so.${MAJOR} ${LIBNAME}.so
"
695 if [ $STATIC = 1 ] ; then
696 LIBNAME="lib
${LIBNAME}.a
"
697 echo "mklib
: Making AIX GCC static library
: " ${LIBNAME}
699 ar ru ${LIBNAME} ${OBJECTS}
700 FINAL_LIBS=${LIBNAME}
702 LIBNAME="lib
${LIBNAME}.so
" # prefix with "lib
", suffix with ".so
"
703 echo "mklib
: Making AIX GCC shared library
: " ${LIBNAME}
707 gcc -shared -Wl,-G ${OBJECTS} ${DEPS} -o ${LIBNAME}
708 # NOTE: the application linking with this library must specify
709 # the -Wl,-brtl flags to gcc
710 FINAL_LIBS=${LIBNAME}
716 if [ $STATIC = 0 ] ; then
717 echo "mklib
: Warning shared libs not supported on Ultrix
"
719 LIBNAME="lib
${LIBNAME}.a
"
720 echo "mklib
: Making static library
for Ultrix
: " ${LIBNAME}
722 ar ru ${LIBNAME} ${OBJECTS}
723 FINAL_LIBS="${LIBNAME}"
727 # GCC-based environment
728 CYGNAME="cyg
${LIBNAME}" # prefix with "cyg
"
729 LIBNAME="lib
${LIBNAME}" # prefix with "lib
"
731 if [ $STATIC = 1 ] ; then
732 echo "mklib
: Making
" $ARCH "static library
: " ${LIBNAME}.a
736 ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
739 FINAL_LIBS=${LIBNAME}.a
741 OPTS="-shared -Wl,-export-all -Wl,--out-implib=${LIBNAME}-${MAJOR}.dll.a
"
742 echo "mklib
: Making
" $ARCH "shared library
: " ${LIBNAME}-${MAJOR}.dll
744 if [ $CPLUSPLUS = 1 ] ; then
751 rm -f ${LIBNAME}-${MAJOR}.dll
752 rm -f ${LIBNAME}.dll.a
756 ${LINK} ${OPTS} -o ${CYGNAME}-${MAJOR}.dll ${OBJECTS} ${DEPS}
757 # make usual symlinks
758 ln -s ${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
760 FINAL_LIBS="${LIBNAME}-${MAJOR}.dll.a ${LIBNAME}.dll.a
"
761 # special case for installing in bin
762 FINAL_BINS="${CYGNAME}-${MAJOR}.dll
"
767 # If you're adding support for a new architecture, you can
769 if [ $STATIC = 1 ] ; then
770 LIBNAME="lib
${LIBNAME}.a
"
771 echo "mklib
: Making static library
for example arch
: " ${LIBNAME}
773 ar rv ${LIBNAME} ${OBJECTS}
774 FINAL_LIBS="${LIBNAME}"
776 LIBNAME="lib
${LIBNAME}.so
" # prefix with "lib
", suffix with ".so
"
777 echo "mklib
: Making shared library
for example arch
: " ${LIBNAME}
778 ld -o ${LIBNAME} ${OBJECTS} ${DEPS}
779 FINAL_LIBS="${LIBNAME}"
784 echo "mklib
: ERROR
: Don
't know how to make a static/shared library for" ${ARCH}
785 echo "mklib: Please add necessary commands to mklib script."
791 # Put library files into installation directory if specified.
793 if [ ${INSTALLDIR} != "." ] ; then
794 echo "mklib: Installing" ${FINAL_LIBS} "in" ${INSTALLDIR}
795 mv ${FINAL_LIBS} ${INSTALLDIR}/