]> granicus.if.org Git - esp-idf/commitdiff
esp32: also add -mfix-esp32-psram-cache-issue to LDFLAGS
authorIvan Grokhotkov <ivan@espressif.com>
Sun, 28 Jul 2019 05:48:21 +0000 (07:48 +0200)
committerIvan Grokhotkov <ivan@espressif.com>
Sun, 28 Jul 2019 06:05:56 +0000 (08:05 +0200)
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

index 0ae77a69d28073bd9cc96bb20cc8183293396848..cf8746f2686255267f0007b8701871fccd71b798 100644 (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