1 |
#!/bin/sh |
#!/bin/sh |
2 |
# ********************************************************************** |
# ********************************************************************** |
3 |
# * @(#) cernlib |
# * @(#) cernlib |
4 |
# * @(#) $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.2 2006/11/08 13:09:36 mocchiut Exp $ |
5 |
# * * |
# * * |
6 |
# * Attachment of CERN Libraries for link step * |
# * Attachment of CERN Libraries for link step * |
7 |
# * * |
# * * |
71 |
fi |
fi |
72 |
CERNLIB="$CERNLIB $dir/lib$ln.a" |
CERNLIB="$CERNLIB $dir/lib$ln.a" |
73 |
done |
done |
74 |
[ $_p -eq 0 ] && CERNLIB="$CERNLIB $CERN/$gver/lib/libpacklib_noshift.a" |
if [ -f $CERN/$gver/lib/libpacklib_noshift.a ]; then |
75 |
|
[ $_p -eq 0 ] && CERNLIB="$CERNLIB $CERN/$gver/lib/libpacklib_noshift.a" |
76 |
|
else |
77 |
|
[ $_p -eq 0 ] && CERNLIB="$CERNLIB $CERN/$gver/lib/libpacklib.a" |
78 |
|
fi; |
79 |
|
|
80 |
# get system name |
# get system name |
81 |
[ -d /NextAdmin ] && Msys="NeXT" || Msys=`uname -s` |
[ -d /NextAdmin ] && Msys="NeXT" || Msys=`uname -s` |
211 |
echo $CERNLIB | grep pawlib >/dev/null && CERNLIB="$CERNLIB -lld" |
echo $CERNLIB | grep pawlib >/dev/null && CERNLIB="$CERNLIB -lld" |
212 |
fi |
fi |
213 |
if [ "$Msys" = "Linux" ] ; then |
if [ "$Msys" = "Linux" ] ; then |
214 |
|
if [ -f $CERN/$gver/lib/libpacklib_noshift.a ]||[ -f $CERN/$gver/lib/libpacklib-shift.a ]; then |
215 |
CERNLIB="$CERNLIB -lnsl -lcrypt -ldl" |
CERNLIB="$CERNLIB -lnsl -lcrypt -ldl" |
216 |
|
else |
217 |
|
CERNLIB="$CERNLIB -lshift -lnsl -lcrypt -ldl" |
218 |
|
fi; |
219 |
fi |
fi |
220 |
fi |
fi |
221 |
|
|