• Vineet Gupta's avatar
    ARC: Override toplevel default -O2 with -O3 · 42dd36b8
    Vineet Gupta authored
    commit 97709069 upstream.
    
    ARC kernels have historically been built with -O3, despite top level
    Makefile defaulting to -O2. This was facilitated by implicitly ordering
    of arch makefile include AFTER top level assigned -O2.
    
    An upstream fix to top level a1c48bb1 ("Makefile: Fix unrecognized
    cross-compiler command line options") changed the ordering, making ARC
    -O3 defunct.
    
    Fix that by NOT relying on any ordering whatsoever and use the proper
    arch override facility now present in kbuild (ARCH_*FLAGS)
    
    Depends-on: ("kbuild: Allow arch Makefiles to override {cpp,ld,c}flags")
    Suggested-by: default avatarMichal Marek <mmarek@suse.cz>
    Cc: Geert Uytterhoeven <geert@linux-m68k.org>
    Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
    Signed-off-by: default avatarLuis Henriques <luis.henriques@canonical.com>
    42dd36b8
Makefile 4.33 KB