mirror of https://github.com/mkerrisk/man-pages
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:
parent
896c71d0bd
commit
7766185cf8
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue