1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Optional -static SITL

Use OPTION=SITL_STATIC if static SITL build is necessary
This commit is contained in:
Petr Ledvina 2017-05-16 15:28:07 +02:00
parent a8c8a413aa
commit 099bd97f0a

View file

@ -1201,12 +1201,16 @@ LDFLAGS = \
$(ARCH_FLAGS) \ $(ARCH_FLAGS) \
$(LTO_FLAGS) \ $(LTO_FLAGS) \
$(DEBUG_FLAGS) \ $(DEBUG_FLAGS) \
-static \
-static-libgcc \
-Wl,-gc-sections,-Map,$(TARGET_MAP) \ -Wl,-gc-sections,-Map,$(TARGET_MAP) \
-Wl,-L$(LINKER_DIR) \ -Wl,-L$(LINKER_DIR) \
-Wl,--cref \ -Wl,--cref \
-T$(LD_SCRIPT) -T$(LD_SCRIPT)
ifneq ($(filter SITL_STATIC,$(OPTIONS)),)
LDFLAGS += \
-static \
-static-libgcc
endif
endif endif
############################################################################### ###############################################################################