dlopen.3: EXAMPLE: Remove mention of "-rdynamic"

That option isn't needed for compiling and running this program.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-07-16 10:12:24 +02:00
parent 896c71d0bd
commit 7766185cf8
1 changed files with 0 additions and 20 deletions

View File

@ -520,26 +520,6 @@ main(int argc, char **argv)
exit(EXIT_SUCCESS);
}
.fi
.PP
If this program were in a file named "foo.c", you would build the program
with the following command:
.in +4n
.LP
gcc \-rdynamic \-o foo foo.c \-ldl
.in
.PP
Shared objects exporting (the obsolete)
.BR _init ()
and
.BR _fini ()
will want to be compiled as
follows, using
.I bar.c
as the example name:
.in +4n
.LP
gcc \-shared \-nostartfiles \-o bar bar.c
.in
.SH SEE ALSO
.BR ld (1),
.BR ldd (1),