bug in build? configuration --with-cxx ends up using PY_CFLAGS instead of CPPFLAGS

Martin v. Loewis martin at v.loewis.de
Wed Apr 17 04:30:50 EDT 2002


vvainio at tp.spt.fi (Ville Vainio) writes:

> I need to create a c++ - friendly version of python 2.2.1 (long story
> short: hp-ux11, omniORB[py]). When I do ./configure --with-cxx=aCC,
> the Makefile that gets generated has the following rule:
> 
> Modules/ccpython.o: $(srcdir)/Modules/ccpython.cc
> 	$(CXX) -c $(PY_CFLAGS) -o $@ $(srcdir)/Modules/ccpython.cc
> 
> So it uses PY_CFLAGS, while it should IMHO use CPPFLAGS (it appears to
> work properly with CPPFLAGS).
> 
> So, the Makefile.pre.in should apparently be altered? Why has this not
> been done? Would it break something on other platforms?

CPPFLAGS are just the flags for the preprocessor, so they are clearly
the wrong set of flags. Can you elaborate which flags is being passed
that should not? In any case, you need both OPT and CFLAGSFORSHARED
when compiling ccpython.

Regards,
Martin




More information about the Python-list mailing list