DEFS= is missing from the top-level Makefile.pre.in in
Python 2.3 final. This causes quite a few older
distutils C extension packages that rely on the
presence of DEFS to break, e.g. DCOracle2-1.1 or
python-ldap 1.10alpha3.
This is because they include @DEFS@ on the
command-line, which causes gcc to barf with a message
saying -c and -o are incompatible for multiple
compilations.
The following patch remedies this:
*** Makefile.pre.in~ Sun Jul 13 03:10:42 2003
--- Makefile.pre.in Tue Jul 29 18:23:22 2003
***************
*** 55,60 ****
--- 55,61 ----
# Compiler options
OPT= @OPT@
BASECFLAGS= @BASECFLAGS@
+ DEFS= $(BASECFLAGS)
CFLAGS= $(BASECFLAGS) $(OPT)
CPPFLAGS= -I. -I$(srcdir)/Include
LDFLAGS= @LDFLAGS@
(I am not sure if BASECFLAGS is a strict equivalent for
DEFS, though).
Platform: Solaris 8 MU7 x/86
Compiler: gcc-2.95.3
|