table of contents
RELAYTOOL(1) | Limba Project | RELAYTOOL(1) |
NAME¶
relaytool - Generate a file that can be used instead of linking directly against a library
SYNOPSIS¶
relaytool [OPTION ...] [LINKER COMMAND ...]
DESCRIPTION¶
This manual page documents briefly the relaytool command.
relaytool is a program to provide a more convenient interface to dlopen/dlsym. It lets you write the same style of code you would when using a normal hard link (-lwhatever), but the symbols are actually lazy-linked at runtime. You can use the symbols libwhatever_is_present and libwhatever_symbol_is_present() to find out what APIs are actually available at runtime.
In other words, the need to use function pointers and lots of manual calls to dlsym() is eliminated, and it becomes much simpler to soft link to things as a result. If a symbol is missing at runtime and you call it anyway, your application will abort and an error message is printed that states which function was called. If a variable is missing at runtime, the value is always -1.
OPTIONS¶
--relay LIB
--replace-all-libs
--minimal-list OBJ_LIST
--partial-map MAP_FILE
--no-replace
--multilink [SONAMES...]
--out-dir DIRECTORY
LINKER COMMANDS¶
-LPATH
-lLIB
All other linker commands are passed as is to stdout.
OTHER COMMANDS¶
-h, --help
--version
SEE ALSO¶
lipkgen (1), ligcc(1), gcc(1).
Additional documentation can be found on http://people.freedesktop.org/~mak/limba.
AUTHOR¶
This manual page was written by Matthias Klumpp <matthias@tenstral.net>.
COPYRIGHT¶
Copyright © 2010-2014 Matthias Klumpp
14 May,2012 | Limba Project |