--- DarthVader/docs/cernlib_pam 2006/11/08 12:11:54 1.1 +++ DarthVader/docs/cernlib_pam 2006/11/08 13:09:36 1.2 @@ -1,7 +1,7 @@ #!/bin/sh # ********************************************************************** # * @(#) cernlib -# * @(#) $Header: /afs/cern.ch/asis/share/cern/CVS/scripts/cernlib,v 1.43 2003/01/23 14:00:37 mclareni Exp $ +# * @(#) $Header: /afs/ba.infn.it/user/pamela/src/CVS/DarthVader/docs/cernlib_pam,v 1.1 2006/11/08 12:11:54 mocchiut Exp $ # * * # * Attachment of CERN Libraries for link step * # * * @@ -71,7 +71,11 @@ fi CERNLIB="$CERNLIB $dir/lib$ln.a" done - [ $_p -eq 0 ] && CERNLIB="$CERNLIB $CERN/$gver/lib/libpacklib_noshift.a" + if [ -f $CERN/$gver/lib/libpacklib_noshift.a ]; then + [ $_p -eq 0 ] && CERNLIB="$CERNLIB $CERN/$gver/lib/libpacklib_noshift.a" + else + [ $_p -eq 0 ] && CERNLIB="$CERNLIB $CERN/$gver/lib/libpacklib.a" + fi; # get system name [ -d /NextAdmin ] && Msys="NeXT" || Msys=`uname -s` @@ -207,7 +211,11 @@ echo $CERNLIB | grep pawlib >/dev/null && CERNLIB="$CERNLIB -lld" fi if [ "$Msys" = "Linux" ] ; then + if [ -f $CERN/$gver/lib/libpacklib_noshift.a ]; then CERNLIB="$CERNLIB -lnsl -lcrypt -ldl" + else + CERNLIB="$CERNLIB -lshift -lnsl -lcrypt -ldl" + fi; fi fi