From: Eric Andersen Date: Mon, 11 Dec 2000 16:20:40 +0000 (-0000) Subject: Add a linker warning for symbol conflicts. X-Git-Tag: 0_48~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9962cd9f7879e8b51ab6eca5abd7c5e51cec8685;p=oweals%2Fbusybox.git Add a linker warning for symbol conflicts. --- diff --git a/Makefile b/Makefile index 345c3c35f..52ad774d8 100644 --- a/Makefile +++ b/Makefile @@ -93,14 +93,13 @@ ifeq ($(DODMALLOC),true) # Force debug=true, since this is useless when not debugging... DODEBUG = true endif -# -D_GNU_SOURCE is needed because environ is used in init.c ifeq ($(DODEBUG),true) - CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE - LDFLAGS += - STRIP = + CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE + LDFLAGS += -Wl,-warn-common + STRIP = else CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE - LDFLAGS += -s + LDFLAGS += -s -Wl,-warn-common STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) endif ifeq ($(DOSTATIC),true)