From d72e34c7524a947ba004afff91272c27549b3085 Mon Sep 17 00:00:00 2001
From: Glenn L McGrath <bug1@ihug.co.nz>
Date: Sat, 20 Sep 2003 00:59:35 +0000
Subject: Patch by Steinar H. Gunderson to fix debian bug #211675. Linking to
 my_getgrnam from libpwdgrp wasnt working, instead it was trying to use
 functionality from glibc, which pulled in libnss.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index b99bb4f18..819edfb35 100644
--- 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
-- 
cgit v1.2.3-55-g6feb