2
0

201-extra_optimization.patch 418 B

1234567891011121314
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -660,9 +660,9 @@ KBUILD_CFLAGS += $(call cc-disable-warni
  4. KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
  5. ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
  6. -KBUILD_CFLAGS += -Os
  7. +KBUILD_CFLAGS += -Os $(EXTRA_OPTIMIZATION)
  8. else
  9. -KBUILD_CFLAGS += -O2
  10. +KBUILD_CFLAGS += -O2 $(EXTRA_OPTIMIZATION)
  11. endif
  12. # Tell gcc to never replace conditional load with a non-conditional one