aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-11 16:20:40 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-11 16:20:40 +0000
commit9962cd9f7879e8b51ab6eca5abd7c5e51cec8685 (patch)
treecf68a0d2b95ce1c222b03ef8c8863a0c10da5ca1
parentc8eedd56ac9fc651bf60e42da5609d1c9182a2ae (diff)
downloadbusybox-w32-9962cd9f7879e8b51ab6eca5abd7c5e51cec8685.tar.gz
busybox-w32-9962cd9f7879e8b51ab6eca5abd7c5e51cec8685.tar.bz2
busybox-w32-9962cd9f7879e8b51ab6eca5abd7c5e51cec8685.zip
Add a linker warning for symbol conflicts.
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 345c3c35f..52ad774d8 100644
--- a/Makefile
+++ b/Makefile
@@ -93,14 +93,13 @@ ifeq ($(DODMALLOC),true)
93 # Force debug=true, since this is useless when not debugging... 93 # Force debug=true, since this is useless when not debugging...
94 DODEBUG = true 94 DODEBUG = true
95endif 95endif
96# -D_GNU_SOURCE is needed because environ is used in init.c
97ifeq ($(DODEBUG),true) 96ifeq ($(DODEBUG),true)
98 CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE 97 CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE
99 LDFLAGS += 98 LDFLAGS += -Wl,-warn-common
100 STRIP = 99 STRIP =
101else 100else
102 CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE 101 CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
103 LDFLAGS += -s 102 LDFLAGS += -s -Wl,-warn-common
104 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) 103 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
105endif 104endif
106ifeq ($(DOSTATIC),true) 105ifeq ($(DOSTATIC),true)