[Python-Dev] Proper place to put extra args for building

"Martin v. Löwis" martin at v.loewis.de
Wed Apr 20 08:27:34 CEST 2005


Brett C. wrote:
> I am currently adding some code for a Py_COMPILER_DEBUG build for use on the
> AST branch.  I thought that OPT was the proper variable to put stuff like this
> into for building (``-DPy_COMPILER_DEBUG``), but that erases ``-g -Wall
> -Wstrict-prototypes``.  Obviously I could just tack all of that into my own
> thing, but that seems like an unneeded step.

Actually, this step is needed.

>>From looking at Makefile.pre.in it seems like CFLAGSFORSHARED is meant for
> extra arguments to the compiler.  Is that right?

No. This is the set of flags to be passed to the compiler when compiling
with --enable-shared. It is set in configure.in.

It might be reasonable to add a variable that will just take additional
compiler flags, and never be modified in configure.

Regards,
Martin


More information about the Python-Dev mailing list