Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: CPPFLAGS Ignored?
- X-seq: zsh-workers 27236
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxxxxx>
- Subject: Re: CPPFLAGS Ignored?
- Date: Fri, 28 Aug 2009 16:08:27 +0100
- Cc: Aaron Davies <aaron.davies@xxxxxxxxx>
- In-reply-to: <94CA6876-4CF1-4547-B8FC-5CFDC2F14A37@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <94CA6876-4CF1-4547-B8FC-5CFDC2F14A37@xxxxxxxxx>
On Wed, 19 Aug 2009 11:57:17 +0800
Aaron Davies <aaron.davies@xxxxxxxxx> wrote:
> There are several places in configure and make where bare $CPP
> commands are issued without including flags (signal.h, error.h, etc.).
> Is there a reason foe this, or is it just really rare to have the
> entire include tree relocated?
I don't think there's a reason, but nobody's ever complained. I've tried
the following locally and nothing horrible happened, but then I don't think
there's anything horrible to happen locally...
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.126
diff -u -r1.126 configure.ac
--- configure.ac 30 May 2009 22:28:50 -0000 1.126
+++ configure.ac 28 Aug 2009 15:05:46 -0000
@@ -1345,7 +1345,7 @@
dnl The backslash substitution is to persuade cygwin to cough up
dnl slashes rather than doubled backslashes in the path.
echo "#include <signal.h>" > nametmp.c
-sigfile_list="`$CPP nametmp.c |
+sigfile_list="`$CPP $CPPFLAGS nametmp.c |
sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
-e 's/^#[ ].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
@@ -1393,7 +1393,7 @@
dnl The backslash substitution is to persuade cygwin to cough up
dnl slashes rather than doubled backslashes in the path.
echo "#include <errno.h>" > nametmp.c
-errfile_list="`$CPP nametmp.c |
+errfile_list="`$CPP $CPPFLAGS nametmp.c |
sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
-e 's/^#[ 0-9].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
@@ -1462,7 +1462,7 @@
echo "#include <$zsh_cv_path_curses_header>" >nametmp.c
fi
-curses_list="`$CPP nametmp.c |
+curses_list="`$CPP $CPPFLAGS nametmp.c |
sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
-e 's/^#[ 0-9].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
@@ -1584,7 +1584,7 @@
[dnl Look at the output from the preprocessor.
dnl Copied from the search for the signal names above.
echo "#include <sys/resource.h>" >restmp.c
-resourcefile_list="`$CPP restmp.c |
+resourcefile_list="`$CPP $CPPFLAGS restmp.c |
sed -n -e 's/^#line[ ].*\"\(.*\)\"/\1/p' \
-e 's/^#[ ].*\"\(.*\)\"/\1/p' |
sed 's/\\\\\\\\/\//g' |
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author