1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Makefile: add --warn-common and --fatal-warnings to identify name clashes

This will stop builds if few same symbols are found when linking.
It should not be the case, but possible and may give unpredicted results.
This commit is contained in:
Oleg Semyonov 2013-03-16 16:19:39 +02:00
parent 238692c3da
commit b7545c6f57
2 changed files with 4 additions and 0 deletions

View File

@ -414,6 +414,8 @@ LDFLAGS += -nostartfiles -Wl,-Map=$(OUTDIR)/$(TARGET).map,--cref,--gc-sections
LDFLAGS += $(patsubst %,-L%,$(EXTRA_LIBDIRS))
LDFLAGS += $(patsubst %,-l%,$(EXTRA_LIBS))
LDFLAGS += -lc -lgcc $(MATH_LIB)
LDFLAGS += -Wl,--warn-common
LDFLAGS += -Wl,--fatal-warnings
ifneq ($(DEBUG), YES)
LDFLAGS += -Wl,-static

View File

@ -332,6 +332,8 @@ LDFLAGS += -nostartfiles -Wl,-Map=$(OUTDIR)/$(TARGET).map,--cref,--gc-sections
LDFLAGS += $(patsubst %,-L%,$(EXTRA_LIBDIRS))
LDFLAGS += $(patsubst %,-l%,$(EXTRA_LIBS))
LDFLAGS += -lc -lgcc $(MATH_LIB)
LDFLAGS += -Wl,--warn-common
LDFLAGS += -Wl,--fatal-warnings
ifneq ($(DEBUG), YES)
LDFLAGS += -Wl,-static