This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
From 66387e83db8e74f73611c9a4b74872eb8fd77f97 Mon Sep 17 00:00:00 2001
authorH.Merijn Brand <merijn@nb09.procura.nl>
Tue, 3 Nov 2009 21:23:20 +0000 (22:23 +0100)
committerH.Merijn Brand <merijn@nb09.procura.nl>
Tue, 3 Nov 2009 21:23:20 +0000 (22:23 +0100)
From: Daniel Mierswa <impulze@impulze.org>
Date: Tue, 3 Nov 2009 20:09:58 +0100
Subject: [PATCH] Use supplied C preprocessor instead of hardcoded cpp.

Signed-off-by: Daniel Mierswa <impulze@impulze.org>
U/modified/Cppsym.U

index 23049c5..ad3a58e 100644 (file)
@@ -39,7 +39,7 @@
 ?MAKE:Cppsym ccsymbols cppsymbols cppccsymbols: run \
        eunicefix Guess awk cat tr sed sort rm rm_try startsh osname \
        +cc +gccversion test comm uniq echo Options trnl \
-       optimize ccflags ldflags libs cpp_stuff
+       optimize ccflags ldflags libs cpp_stuff cpp
 ?MAKE: -pick add $@ %<
 ?T:also symbols i postprocess_cc_v tHdrH
 ?X:
@@ -223,7 +223,7 @@ case "$osname::$gccversion" in
     tHdrH=_tmpHdr
     rm -f $tHdrH'.h' $tHdrH
     touch $tHdrH'.h'
-    if cpp -dM $tHdrH'.h' > $tHdrH'_cppsym.h' && [ -s $tHdrH'_cppsym.h' ]; then
+    if $cpp -dM $tHdrH'.h' > $tHdrH'_cppsym.h' && [ -s $tHdrH'_cppsym.h' ]; then
        sed 's/#define[\ \  ]*//;s/[\ \     ].*$//' <$tHdrH'_cppsym.h' >$tHdrH'_cppsym.real'
        if [ -s $tHdrH'_cppsym.real' ]; then
          cat $tHdrH'_cppsym.real' Cppsym.know | sort | uniq | ./Cppsym | sort | uniq > Cppsym.true