From 7766185cf8d9e43d474661a6f004acd60d4b2540 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 16 Jul 2015 10:12:24 +0200 Subject: [PATCH] dlopen.3: EXAMPLE: Remove mention of "-rdynamic" That option isn't needed for compiling and running this program. Signed-off-by: Michael Kerrisk --- man3/dlopen.3 | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/man3/dlopen.3 b/man3/dlopen.3 index 5021ea4c7..0d80c4813 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),