From: Philippe Houdoin Date: Sat, 14 Aug 2004 10:12:38 +0000 (+0000) Subject: Update BeOS mklib to set mimetype and version. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef4dd5ad79555d3c018cf87f85080ff5abf60d25;p=mesa.git Update BeOS mklib to set mimetype and version. Static lib build support added. --- diff --git a/bin/mklib b/bin/mklib index 21d214599d0..d645cfb72f9 100755 --- a/bin/mklib +++ b/bin/mklib @@ -432,10 +432,18 @@ case $ARCH in ;; 'BeOS') - LIBNAME="lib${LIBNAME}.so" - echo "mklib: Making BeOS shared library: " ${LIBNAME} - gcc -nostart -Xlinker -soname=${LIBNAME} -L/Be/develop/lib/x86 ${OBJECTS} -lbe -o ${LIBNAME} - FINAL_LIBS=${LIBNAME} + if [ $STATIC = 1 ] ; then + LIBNAME="lib${LIBNAME}.a" + echo "mklib: Making BeOS static library: " ${LIBNAME} + ar -cru "${LIBNAME}" ${OBJECTS} + else + LIBNAME="lib${LIBNAME}.so" + echo "mklib: Making BeOS shared library: " ${LIBNAME} + gcc -nostart -Xlinker "-soname=${LIBNAME}" -L/Be/develop/lib/x86 -lbe ${DEPS} ${OBJECTS} -o "${LIBNAME}" + mimeset -f "${LIBNAME}" + setversion "${LIBNAME}" -app ${MAJOR} ${MINOR} ${PATCH} -short "Powered by Mesa3D!" -long "Powered by Mesa3D!" + fi + FINAL_LIBS=${LIBNAME} ;; 'QNX')