esp32: also add -mfix-esp32-psram-cache-issue to LDFLAGS

xtensa-esp32-elf-gcc selects among the multilib configurations based
on the presence of -mfix-esp32-psram-cache-issue flag. Pass this flag
in LDFLAGS so that the correct libraries are linked.

Reported in https://github.com/espressif/esp-idf/issues/3624
This commit is contained in:
Ivan Grokhotkov
2019-07-28 07:48:21 +02:00
parent 1b6010bedf
commit 98c179ed47

View File

@ -2,6 +2,7 @@
ifdef CONFIG_SPIRAM_CACHE_WORKAROUND
CFLAGS+=-mfix-esp32-psram-cache-issue
CXXFLAGS+=-mfix-esp32-psram-cache-issue
LDFLAGS+=-mfix-esp32-psram-cache-issue
endif
# Enable dynamic esp_timer overflow value if building unit tests