Rev 31770 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#! /bin/sh#### ${R_HOME}/bin/LINKrevision='$Revision: 1.7 $'version=`set - ${revision}; echo ${2}`version="R linker front end ${version}Copyright (C) 2000-2004 The R Core Development Team.This is free software; see the GNU General Public Licence version 2or later for copying conditions. There is NO warranty."usage="Usage: R CMD LINK [options] linkcmdPerform the specified linkcmd by passing it through GNU libtool andsetting a few useful R-related options. Use in particular when creatingexecutables linked against the R shared library, in which case linkcmdmust contain '-lR' but need not specify its library path.Options:-h, --help print short help message and exit-v, --version print LINK version info and exitCurrently only is useful when creating executables, and only works ifthe C compiler is used for linking. If FORTRAN code is to be linked, itneeds to be manually ensured that the linker flags for the FORTRAN 77intrinsic and run-time libraries are present. C++ is not supported(yet).Report bugs to <r-bugs@r-project.org>."args=while test -n "${1}"; docase ${1} in-h|--help)echo "${usage}"; exit 0 ;;-v|--version)echo "${version}"; exit 0 ;;*)args="${args} ${1}" ;;esacshiftdoneif test -z "${R_HOME}"; thenecho "Fatal error: R_HOME was not set"exit 1fiRexeclibdir=${R_HOME}/liblinkopts="-avoid-version -rpath ${Rexeclibdir}"exec ${R_HOME}/bin/libtool --mode=link ${args} ${linkopts}### Local Variables: ***### mode: sh ***### sh-indentation: 2 ***### End: ***