[Patches] [ python-Patches-659809 ] fix Makefile.pre to use config env

noreply@sourceforge.net noreply@sourceforge.net
Mon, 30 Dec 2002 13:04:50 -0800


Patches item #659809, was opened at 2002-12-29 17:41
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=659809&group_id=5470

Category: Build
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Daniel Brotsky (brotsky)
Assigned to: Guido van Rossum (gvanrossum)
Summary: fix Makefile.pre to use config env

Initial Comment:
In Python CVS head (2.3a0 as of 2002/12/29), Makefile.pre does not use the configure-specified values for CPPFLAGS or LDFLAGS (although it does use CFLAGS).  This means that non-standard build environments that can be expressed to configure using these flags (such as the fink environment on Mac OS X) are not picked up properly in the Python build process.  This, in turn, causes various extension modules that should build properly not to build properly.  It can even cause the Python core build to fail if a CFLAGS-specified include directory requires a non-core library in the LDFLAGS directory.

Fixing Makefile.pre to use CPPFLAGS and LDFLAGS as specified by configure turned up a related problem: the parser target did not properly use the standard Python linker flags when creating a separate library.

The attached patch fixes both of these problems.  It was created and tested on the Darwin platform; I have had no chance to test it on Linux or Solaris.


----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-12-30 16:04

Message:
Logged In: YES 
user_id=6380

Thanks -- accepted and checked in as Makefile.pre.in 1.105.

----------------------------------------------------------------------

Comment By: Daniel Brotsky (brotsky)
Date: 2002-12-29 22:40

Message:
Logged In: YES 
user_id=337571

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=659809&group_id=5470