diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-07-16 10:12:24 +0200 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-08-08 17:35:44 +0200 |
commit | 7766185cf8d9e43d474661a6f004acd60d4b2540 (patch) | |
tree | 06c649b3d3e67edbb9d7f93d436fa9944b1becc3 | |
parent | 896c71d0bd881c45d1e001089747245b8526a538 (diff) | |
download | man-pages-7766185cf8d9e43d474661a6f004acd60d4b2540.tar.gz |
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>
-rw-r--r-- | man3/dlopen.3 | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/man3/dlopen.3 b/man3/dlopen.3 index 5021ea4c7f..0d80c48137 100644 --- a/man3/dlopen.3 +++ b/man3/dlopen.3 @@ -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), |