diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-11 16:20:40 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-11 16:20:40 +0000 |
commit | be3acb9f7d681998d1086f841089fc30a35563d7 (patch) | |
tree | cf68a0d2b95ce1c222b03ef8c8863a0c10da5ca1 /Makefile | |
parent | 4064bc53c8ad5c8b55ffff155bb8c24daa3d106d (diff) | |
download | busybox-w32-be3acb9f7d681998d1086f841089fc30a35563d7.tar.gz busybox-w32-be3acb9f7d681998d1086f841089fc30a35563d7.tar.bz2 busybox-w32-be3acb9f7d681998d1086f841089fc30a35563d7.zip |
Add a linker warning for symbol conflicts.
git-svn-id: svn://busybox.net/trunk/busybox@1417 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |
95 | endif | 95 | endif |
96 | # -D_GNU_SOURCE is needed because environ is used in init.c | ||
97 | ifeq ($(DODEBUG),true) | 96 | ifeq ($(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 = |
101 | else | 100 | else |
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) |
105 | endif | 104 | endif |
106 | ifeq ($(DOSTATIC),true) | 105 | ifeq ($(DOSTATIC),true) |