Add a linker warning for symbol conflicts.
authorEric Andersen <andersen@codepoet.org>
Mon, 11 Dec 2000 16:20:40 +0000 (16:20 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 11 Dec 2000 16:20:40 +0000 (16:20 -0000)
Makefile

index 345c3c35fc13599fe27a85e8a73d7d64178167ea..52ad774d8d093b09bd7d59922ceada434fb53c57 100644 (file)
--- 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)