The cernlib command has been designed to ease access to the CERN program library software, while allowing access to user libraries. It is platform-independent and accepts the POSIX syntax. Note that you must have the directory /cern/pro/bin in your path in order to use this command.
cernlib grants access to packlibThe cernlib command is used in combination with the link command by enclosing it in back-quotes on the link command line. For example if you use the f77 command for linking:cernlib mathlib grants access to mathlib and packlib
cernlib -L $DELPHI_LIBS -l dstanaxx -l ux26xx
grants access to libraries dstanaxx and ux26xx in the directory
defined by the environment variable DELPHI_LIBS
f77 -o myprog myprog.o `cernlib mathlib graflib/X11 ....`