• Uwe Hermann's avatar
    Makefile: Fix MinGW build, improve output with bogus CC · 44ffd58a
    Uwe Hermann authored
    
    
    As per IRC discussion, the "ARCH :=" line should be moved after any
    lines which set CC, as it uses CC itself. This fixes the MinGW build.
    
    Also, add a "2>/dev/null" in the "ARCH :=" as per suggestion from
    Stefan Tauner to improve the output in the case CC is bogus:
    
    Before:
    $ make CC=foo
    /bin/sh: foo: not found
    Checking for a C compiler... not found.
    make: *** [compiler] Error 1
    
    After:
    $ make CC=foo
    Checking for a C compiler... not found.
    make: *** [compiler] Error 1
    
    Corresponding to flashrom svn r1418.
    Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
    Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
    44ffd58a
Makefile 19 KB