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:
parent
238692c3da
commit
b7545c6f57
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user