remove objcopy --weaken from the makefile
authorRich Felker <dalias@aerifal.cx>
Tue, 1 May 2012 18:31:55 +0000 (14:31 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 1 May 2012 18:31:55 +0000 (14:31 -0400)
as far as I can tell, it's not useful and never way. I wrote it way
back under the assumption that non-weak symbols in the POSIX or
extension namespace could conflict with legitimate uses of the same
symbol name in the main program or other libraries, but that does not
seem to be the case.

Makefile

index 72b640a..b419554 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,6 @@ INC     = -I./src/internal -I./include -I./arch/$(ARCH)
 PIC     = -fPIC -O3
 AR      = $(CROSS_COMPILE)ar
 RANLIB  = $(CROSS_COMPILE)ranlib
-OBJCOPY = $(CROSS_COMPILE)objcopy
 
 ALL_INCLUDES = $(sort $(wildcard include/*.h include/*/*.h) $(GENH))
 
@@ -80,7 +79,6 @@ include/bits/alltypes.h: include/bits/alltypes.h.sh
 
 lib/libc.so: $(LOBJS)
        $(CC) $(LDFLAGS) -Wl,-soname=libc.so -o $@ $(LOBJS) -lgcc
-       $(OBJCOPY) --weaken $@
 
 lib/libc.a: $(OBJS)
        rm -f $@