Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Use CC to determine if gcc is used



On 04/27/15 16:11, Peter Stephenson wrote:
> On Mon, 27 Apr 2015 13:30:33 +0000
> Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>> Or we could bypass the "Is this a GNU CPP" problem entirely:
>> [[[
>> diff --git Src/zsh.mdd Src/zsh.mdd
>> index 71dd613..8b6842d 100644
>> --- Src/zsh.mdd
>> +++ Src/zsh.mdd
>> @@ -28,12 +28,7 @@ hdrdeps="zshcurses.h zshterm.h"
>>  # on the option to remove them being the same.
>>  signames.c: signames1.awk signames2.awk ../config.h @SIGNAL_H@
>>         $(AWK) -f $(sdir)/signames1.awk @SIGNAL_H@ >sigtmp.c
>> -       case "$(CPP)" in \
>> -       gcc*) \
>> -       $(CPP) -P sigtmp.c >sigtmp.out;; \
>> -       *) \
>> -       $(CPP) sigtmp.c >sigtmp.out;; \
>> -       esac
>> +       $(CPP) sigtmp.c | grep -v '^ *# *line [0-9]\+' >sigtmp.out
>>         $(AWK) -f $(sdir)/signames2.awk sigtmp.out > $@
>>         rm -f sigtmp.c sigtmp.out

This fails to compile with gcc-5.1:

config.status: creating Src/Makemod
make[2]: Entering directory
'/var/tmp/paludis/build/app-shells-zsh-scm/work/zsh-scm/Src'
make[2]: Leaving directory
'/var/tmp/paludis/build/app-shells-zsh-scm/work/zsh-scm/Src'
Makefile:452: recipe for target 'headers' failed
make[1]: Leaving directory
'/var/tmp/paludis/build/app-shells-zsh-scm/work/zsh-scm/Src'
Makefile:190: recipe for target 'all' failed
Makemod:543: *** missing separator.  Stop.
make[1]: *** [headers] Error 2
make: *** [all] Error 1

-- 
Best regards,
Heiko



Messages sorted by: Reverse Date, Date, Thread, Author