Dylibs get deps.m: Difference between revisions

Jump to navigation Jump to search
Include Fink and /local when determining which libs need to be relocatable
(initial edit)
 
(Include Fink and /local when determining which libs need to be relocatable)
Line 22: Line 22:
##
##
## Extracts the dependent libary names from the named binary, @var{name}.
## Extracts the dependent libary names from the named binary, @var{name}.
## If @var{root} is specified, the only libraries returned have a path
## If @var{root} is specified, the only libraries returned will have paths
## which begins with that specified by @var{root}.
## which begin with one of the cell-strings contained by @var{root}.
##
## The defaults for @var{root} are @code{@{"/opt/local/", "/sw/", "/usr/local/",
## "@@executable_path"@}}.  These root paths are intended to match all the
## relocatable libraries which should be included in an App bundle.  The first
## and second entries correspond to the MacPorts and Fink installation
## directories, respectively.
##
##
## @seealso {dylibs_find, dylibs_fix}
## @seealso {dylibs_find, dylibs_fix}
Line 31: Line 37:
## Created: 2012-06-27
## Created: 2012-06-27


function [deps, full_deps] = dylibs_get_deps (names, root_dir = {"/opt/local/", "@executable_path"})
function [deps, full_deps] = dylibs_get_deps (names, root_dir = {"/opt/local/", "/sw/", "/usr/local", "@executable_path"})
   if (ischar (root_dir))
   if (ischar (root_dir))
     root_dir = {root_dir};
     root_dir = {root_dir};
364

edits

Navigation menu