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:
parent
a8c8a413aa
commit
099bd97f0a
1 changed files with 6 additions and 2 deletions
8
Makefile
8
Makefile
|
@ -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
|
||||
|
||||
###############################################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue