From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3779 invoked by alias); 26 Apr 2015 17:48:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34967 Received: (qmail 24676 invoked from network); 26 Apr 2015 17:48:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 From: Heiko Becker To: zsh-workers@zsh.org Subject: [PATCH] Use CC to determine if gcc is used Date: Sun, 26 Apr 2015 19:48:31 +0200 Message-Id: <1430070511-9895-1-git-send-email-heirecka@exherbo.org> X-Mailer: git-send-email 2.3.3 I ran into this with gcc-5.1 and CPP set to x86_64-pc-linux-gnu-cpp which isn't catched by the intended case branch and caused zsh to be miscompiled in the process. --- Src/zsh.mdd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/zsh.mdd b/Src/zsh.mdd index 71dd613..3c8c355 100644 --- a/Src/zsh.mdd +++ b/Src/zsh.mdd @@ -28,8 +28,8 @@ 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*) \ + case "$(CC)" in \ + *gcc*) \ $(CPP) -P sigtmp.c >sigtmp.out;; \ *) \ $(CPP) sigtmp.c >sigtmp.out;; \ -- 2.3.3