Add --start-group and --end-group.
authordrepper <drepper>
Sun, 15 Oct 2000 04:00:32 +0000 (04:00 +0000)
committerdrepper <drepper>
Sun, 15 Oct 2000 04:00:32 +0000 (04:00 +0000)
FAQ.in

diff --git a/FAQ.in b/FAQ.in
index 9b1f35a..f435a08 100644 (file)
--- a/FAQ.in
+++ b/FAQ.in
@@ -811,8 +811,8 @@ can create a static binary that will use only the services dns and files
 (change /etc/nsswitch.conf for this).  You need to link explicitly against
 all these services. For example:
 
-  gcc -static test-netdb.c -o test-netdb.c \
-    -lc -lnss_files -lnss_dns -lresolv
+  gcc -static test-netdb.c -o test-netdb \
+    -Wl,--start-group -lc -lnss_files -lnss_dns -lresolv -Wl,--end-group
 
 The problem with this approach is that you've got to link every static
 program that uses NSS routines with all those libraries.