xilinx-standalone.conf: Add workaround for microblaze -Os bug
@@ -5,6 +5,9 @@ DISTRO_NAME_append = " (lto)"
# By default we want to optimize for size.
FULL_OPTIMIZATION = "-Os -pipe ${DEBUG_FLAGS}"
+# Workaround for microblaze -Os bug
+FULL_OPTIMIZATION_microblaze = "-O2 -pipe ${DEBUG_FLAGS}"
+
# We also need to use Link Time Optimization for many items, make this the
# default.
ESW_CFLAGS += " -flto -ffat-lto-objects"
