Patch by Steinar H. Gunderson to fix debian bug #211675.
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 20 Sep 2003 00:59:35 +0000 (00:59 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 20 Sep 2003 00:59:35 +0000 (00:59 -0000)
Linking to my_getgrnam from libpwdgrp wasnt working, instead it was
trying to use functionality from glibc, which pulled in libnss.

Makefile

index b99bb4f..819edfb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,7 +45,7 @@ all: busybox busybox.links doc
 include $(patsubst %,%/Makefile.in, $(DIRS))
 
 busybox: .depend include/config.h $(libraries-y)
-       $(CC) $(LDFLAGS) -o $@ $(libraries-y) $(LIBRARIES)
+       $(CC) $(LDFLAGS) -o $@ -Wl,--start-group $(libraries-y) $(LIBRARIES) -Wl,--end-group
        $(STRIPCMD) $@
 
 busybox.links: applets/busybox.mkll include/config.h