• Dmitri Vorobiev's avatar
    Strip compiler options from the CC variable · 12a9d1a3
    Dmitri Vorobiev authored
    
    
    The Makefile checks validity of the compiler command in the CC
    variable by feeding the contents of that variable to the `type'
    utility. Some environments include compiler options in the CC
    variable such as architecture specific tuning flags. For such
    cases it is necessary to first strip everything except the
    command itself from the contents of the CC variable prior to
    checking the command with the type utility, which is what this
    patch is introducing. We use shell parameter expansion mechanism
    for this purpose.
    Signed-off-by: default avatarDmitri Vorobiev <dmitri.vorobiev@movial.com>
    12a9d1a3
Makefile 7.75 KB