X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=doc%2Frelocatable-maint.texi;h=58160cf7c7e4e79c8c98aba110f24eb4fa617c7b;hb=3f08220c1a263dfc45f6e0ce6dcee97631dd5e56;hp=7c24b28239d7685ce357180c8770e3b7c0f0c791;hpb=d93391bffb3c76c651161b5b8c199c358bc6256a;p=gnulib.git diff --git a/doc/relocatable-maint.texi b/doc/relocatable-maint.texi index 7c24b2823..58160cf7c 100644 --- a/doc/relocatable-maint.texi +++ b/doc/relocatable-maint.texi @@ -89,6 +89,27 @@ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); The prototype for this function is in @file{relocatable.h}. @item +The @code{set_program_name} function can also configure some +additional libraries to relocate files that they access, by defining +corresponding C preprocessor symbols to 1. The libraries for which +this is supported and the corresponding preprocessor symbols are: + +@table @asis +@item libcharset +@code{DEPENDS_ON_LIBCHARSET} + +@item libiconv +@code{DEPENDS_ON_LIBICONV} + +@item libintl +@code{DEPENDS_ON_LIBINTL} +@end table + +Defining the symbol for a library makes every program in the package +depend on that library, whether the program really uses the library or +not, so this feature should be used with some caution. + +@item If your package installs shell scripts, also import the @code{relocatable-script} module. Then, near the beginning of each shell script that your package installs, add the following: @@ -142,6 +163,3 @@ If your @file{config.h} is not in @file{$(top_builddir)}, then set RELOCATABLE_CONFIG_H_DIR='$(top_builddir)/src' @end example @end enumerate - -Set @var{RELOCATABLE_STRIP} to @code{:}. This is needed so that -@samp{make install} installs executables without stripping them.