Add a linker warning for symbol conflicts.
This commit is contained in:
parent
c8eedd56ac
commit
9962cd9f78
9
Makefile
9
Makefile
@ -93,14 +93,13 @@ ifeq ($(DODMALLOC),true)
|
|||||||
# Force debug=true, since this is useless when not debugging...
|
# Force debug=true, since this is useless when not debugging...
|
||||||
DODEBUG = true
|
DODEBUG = true
|
||||||
endif
|
endif
|
||||||
# -D_GNU_SOURCE is needed because environ is used in init.c
|
|
||||||
ifeq ($(DODEBUG),true)
|
ifeq ($(DODEBUG),true)
|
||||||
CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE
|
CFLAGS += $(WARNINGS) -g -D_GNU_SOURCE
|
||||||
LDFLAGS +=
|
LDFLAGS += -Wl,-warn-common
|
||||||
STRIP =
|
STRIP =
|
||||||
else
|
else
|
||||||
CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
|
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)
|
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
|
||||||
endif
|
endif
|
||||||
ifeq ($(DOSTATIC),true)
|
ifeq ($(DOSTATIC),true)
|
||||||
|
Loading…
Reference in New Issue
Block a user