* Build dependencies, compiler flags, and linker flags for most stdlib
extension modules are now detected by :program:`configure`. libffi, libnsl,
- libsqlite3, zlib, bzip2, liblzma, libcrypt, Tcl/Tk libs, and uuid flags
- are detected by ``pkg-config`` (when available).
+ libsqlite3, zlib, bzip2, liblzma, libcrypt, Tcl/Tk, and uuid flags
+ are detected by ``pkg-config`` (when available). :mod:`tkinter` now
+ requires ``pkg-config`` command to detect development settings for Tcl/Tk
+ headers and libraries.
(Contributed by Christian Heimes and Erlend Egeberg Aasland in
:issue:`45847`, :issue:`45747`, and :issue:`45763`.)
.. note::
- Use the environment variables ``TCLTK_CFLAGS`` and ``TCLTK_LIBS`` to
- manually specify the location of Tcl/Tk headers and libraries.
- The :program:`configure` options ``--with-tcltk-includes`` and
- ``--with-tcltk-libs`` have been removed.
+ Use the environment variables :envvar:`TCLTK_CFLAGS` and
+ :envvar:`TCLTK_LIBS` to manually specify the location of Tcl/Tk headers
+ and libraries. The :program:`configure` options ``--with-tcltk-includes``
+ and ``--with-tcltk-libs`` have been removed.
+
+ On RHEL 7 and CentOS 7 the development packages do not provide ``tcl.pc``
+ and ``tk.pc``, use :envvar:`TCLTK_LIBS="-ltk8.5 -ltkstub8.5 -ltcl8.5"`.
+ The directory ``Misc/rhel7`` contains ``.pc`` files and instructions
+ how to build Python with RHEL 7's and CentOS 7's Tcl/Tk and OpenSSL.
* CPython now has :pep:`11` tier 3 support for cross compiling to WebAssembly
platform ``wasm32-unknown-emscripten`` (Python in the browser). The effort
--- /dev/null
+# pkg-config overrides for RHEL 7 and CentOS 7
+
+RHEL 7 and CentOS 7 do not provide pkg-config `.pc` files for Tcl/Tk. The
+ OpenSSL 1.1.1 pkg-config file is named `openssl11.pc` and not picked up
+ by Python's `configure` script.
+
+To build Python with system Tcl/Tk libs and OpenSSL 1.1 package, first
+install the developer packages and the `pkgconfig` package with `pkg-config`
+command.
+
+```shell
+sudo yum install pkgconfig 'tcl-devel >= 8.5.12' 'tk-devel >= 8.5.12' openssl11-devel
+```
+
+The run `configure` with `PKG_CONFIG_PATH` environment variable.
+
+```shell
+PKG_CONFIG_PATH=Misc/rhel7 ./configure -C
+```