1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +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) \
$(LTO_FLAGS) \
$(DEBUG_FLAGS) \
-static \
-static-libgcc \
-Wl,-gc-sections,-Map,$(TARGET_MAP) \
-Wl,-L$(LINKER_DIR) \
-Wl,--cref \
-T$(LD_SCRIPT)
ifneq ($(filter SITL_STATIC,$(OPTIONS)),)
LDFLAGS += \
-static \
-static-libgcc
endif
endif
###############################################################################