gh-93744: Remove configure --with-cxx-main option (#95651)

Remove the "configure --with-cxx-main" build option: it didn't work
for many years. Remove the MAINCC variable from configure and
Makefile.

The MAINCC variable was added by the issue gh-42471: commit
0f48d98b74. Previously, --with-cxx-main
was named --with-cxx.

Keep CXX and LDCXXSHARED variables, even if they are no longer used
by Python build system.
This commit is contained in:
Victor Stinner 2022-08-05 13:26:58 +02:00 committed by GitHub
parent 3a9e1fda7a
commit 398ed84dc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 81 deletions

View file

@ -41,12 +41,6 @@ General Options
See :data:`sys.int_info.bits_per_digit <sys.int_info>`.
.. cmdoption:: --with-cxx-main
.. cmdoption:: --with-cxx-main=COMPILER
Compile the Python ``main()`` function and link Python executable with C++
compiler: ``$CXX``, or *COMPILER* if specified.
.. cmdoption:: --with-suffix=SUFFIX
Set the Python executable suffix to *SUFFIX*.
@ -721,22 +715,10 @@ Compiler flags
Example: ``gcc -pthread``.
.. envvar:: MAINCC
C compiler command used to build the ``main()`` function of programs like
``python``.
Variable set by the :option:`--with-cxx-main` option of the configure
script.
Default: ``$(CC)``.
.. envvar:: CXX
C++ compiler command.
Used if the :option:`--with-cxx-main` option is used.
Example: ``g++ -pthread``.
.. envvar:: CFLAGS
@ -854,7 +836,7 @@ Linker flags
Linker command used to build programs like ``python`` and ``_testembed``.
Default: ``$(PURIFY) $(MAINCC)``.
Default: ``$(PURIFY) $(CC)``.
.. envvar:: CONFIGURE_LDFLAGS