0567eff840116069da0e5272cba8f0094b98ae2f
[librecmc/librecmc.git] / target / linux / generic / pending-4.14 / 201-extra_optimization.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -652,9 +652,9 @@ KBUILD_CFLAGS       += $(call cc-disable-warni
4  KBUILD_CFLAGS  += $(call cc-disable-warning, attribute-alias)
5  
6  ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
7 -KBUILD_CFLAGS   += -Os
8 +KBUILD_CFLAGS   += -Os $(EXTRA_OPTIMIZATION)
9  else
10 -KBUILD_CFLAGS   += -O2
11 +KBUILD_CFLAGS   += -O2 $(EXTRA_OPTIMIZATION)
12  endif
13  
14  # Tell gcc to never replace conditional load with a non-conditional one