This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Makefile.pre.in ignores CPPFLAGS from environment
Type: Stage:
Components: Build Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: blb, draghuram
Priority: normal Keywords:

Created on 2003-07-30 06:26 by blb, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (2)
msg60363 - (view) Author: Bryan Blackburn (blb) Date: 2003-07-30 06:26
Makefile.pre.in doesnt use @CPPFLAGS@ when defining its 
own version, so if it is set in the environment while 
running configure, that setting is lost during the build.

The following patch fixes this:

--- Makefile.pre.in.orig       Sun Jul 13 04:10:42 2003
+++ Makefile.pre.in   Tue Jul 29 23:18:01 2003
@@ -56,7 +56,7 @@
 OPT=       @OPT@
 BASECFLAGS=    @BASECFLAGS@
 CFLAGS=        $(BASECFLAGS) $(OPT)
-CPPFLAGS=  -I. -I$(srcdir)/Include
+CPPFLAGS=  @CPPFLAGS@ -I. -I$(srcdir)/Include
 LDFLAGS=   @LDFLAGS@
 LDLAST=        @LDLAST@
 SGI_ABI=   @SGI_ABI@
msg61820 - (view) Author: Raghuram Devarakonda (draghuram) (Python triager) Date: 2008-01-29 15:11
The latest Makefile.pre.in does have this change (@CPPFLAGS@ is appended).
History
Date User Action Args
2022-04-10 16:10:20adminsetgithub: 38969
2008-01-29 15:11:10draghuramsetstatus: open -> closed
resolution: fixed
messages: + msg61820
nosy: + draghuram
versions: + Python 2.6, - Python 2.3
2003-07-30 06:26:48blbcreate