]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Document situations where -export-symbols does not work.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Sep 2024 09:33:27 +0000 (11:33 +0200)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Fri, 13 Sep 2024 17:19:32 +0000 (20:19 +0300)
* doc/libtool.texi (Link mode): Document that -export-symbols does not work on
static libraries. Document the most important platforms where it does not work
on shared libraries.

doc/libtool.texi

index 04ab34f1f319dacfd3084bc3a30c2a66f83f2ede..503c0fb1b1dbf5301354ae497bb7885208179d2f 100644 (file)
@@ -1491,7 +1491,13 @@ Allow symbols from @var{output-file} to be resolved with @code{dlsym}
 @item -export-symbols @var{symfile}
 Tells the linker to export only the symbols listed in @var{symfile}.
 The symbol file should end in @file{.sym} and must contain the name of one
-symbol per line.  This option has no effect on some platforms.
+symbol per line.  This option has no effect:
+@itemize @bullet
+@item
+on static libraries, and
+@item
+on shared libraries on some platforms, such as AIX and Haiku.
+@end itemize
 By default all symbols are exported.
 
 @item -export-symbols-regex @var{regex}