Fix stupid fucking bug with simulator compilation

This commit is contained in:
2024-06-10 17:39:48 +02:00
parent 1d56e5a865
commit b53bd2baf7
4 changed files with 9 additions and 4 deletions

View File

@ -11,4 +11,9 @@ user_cflags := -DUSE_BPP=16 -std=gnu++1z -Wno-cast-qual -Wno-missing-declaration
# ADDITIONAL_SOURCES. Since TouchGFXDesigner completely overwrites the generated
# Makefile, we can't fix it there -- but the generated makefile includes this
# file, so we can fix it here.
ADDITIONAL_SOURCES := $(call subst_drivename,$(ADDITIONAL_SOURCES))
subst_drivename = $(shell echo $(1) | sed -e 's!^\([a-zA-Z]\):/!/\1/!')
ADDITIONAL_SOURCES := $(foreach src,$(ADDITIONAL_SOURCES),$(call subst_drivename,$(src)))
ifeq ($(UNAME), Linux)
linker_options += -no-pie
endif