From: ericm Date: Thu, 15 Jan 2004 05:00:06 +0000 (+0000) Subject: liblustre: X-Git-Tag: v1_7_0_51~2^7~122 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=61a1bda2b91d75b2ea36fe6995ac4f209fcdf3fa;p=fs%2Flustre-release.git liblustre: - minor build fix --- diff --git a/lustre/liblustre/genlib.sh b/lustre/liblustre/genlib.sh index a5a6212..fed3051 100755 --- a/lustre/liblustre/genlib.sh +++ b/lustre/liblustre/genlib.sh @@ -15,6 +15,14 @@ CWD=`pwd` SYSIO=$1 +if [ ! -f $SYSIO/lib/libsysio.a ]; then + echo "ERROR: $SYSIO/lib/libsysio.a dosen't exist" + exit 1 +fi + +# do cleanup at first +rm -f liblustre.so + ALL_OBJS= build_obj_list() { @@ -31,13 +39,11 @@ sysio_tmp=$CWD/sysio_tmp_`date +%s` build_sysio_obj_list() { _objs=`$AR -t $1` mkdir -p $sysio_tmp - savepwd=`pwd` - cd $sysio_tmp - $AR -x ../$1 + $AR $1 + mv $_objs $sysio_tmp for _lib in $_objs; do ALL_OBJS=$ALL_OBJS"$sysio_tmp/$_lib "; done - cd $savepwd } # lustre components libs