From 98c179ed4757a94e6e9c39a89b83a2e373eb5ff5 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Sun, 28 Jul 2019 07:48:21 +0200 Subject: [PATCH] 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 --- components/esp32/Makefile.projbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp32/Makefile.projbuild b/components/esp32/Makefile.projbuild index 0ae77a69d2..cf8746f268 100644 --- a/components/esp32/Makefile.projbuild +++ b/components/esp32/Makefile.projbuild @@ -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 -- 2.40.0