diff options
author | Philippe Houdoin <phoudoin@freedesktop.org> | 2004-08-14 10:12:38 +0000 |
---|---|---|
committer | Philippe Houdoin <phoudoin@freedesktop.org> | 2004-08-14 10:12:38 +0000 |
commit | ef4dd5ad79555d3c018cf87f85080ff5abf60d25 (patch) | |
tree | 1e52320ab5c7b559f92b6c77f55c75d028983e16 /bin | |
parent | 92ec9975fe1d5ce9ae93175025d4a7b8776e0d7f (diff) |
Update BeOS mklib to set mimetype and version.
Static lib build support added.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mklib | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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') |