File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,9 +152,11 @@ getpath.o: getpath.c Makefile
152152# When the configuration changes, we remove the library, so that it
153153# gets remade from scratch; this ensures to remove modules that are no
154154# longer pertinent (but that were in a previous configuration).
155- config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup Setup.local
155+ config.c Makefile: Makefile.pre config.c.in $(MAKESETUP)
156+ config.c Makefile: Setup.thread Setup Setup.local
157+ config.c Makefile:
156158 -rm -f $(LIBRARY)
157- $(SHELL) $(MAKESETUP) Setup.local Setup
159+ $(SHELL) $(MAKESETUP) Setup.thread Setup. local Setup
158160
159161Setup:
160162 cp $(srcdir)/Setup.in Setup
Original file line number Diff line number Diff line change @@ -95,11 +95,7 @@ signal signalmodule.c # signal(2)
9595
9696# gl glmodule.c cgensupport.c -I$(srcdir) -lgl -lX11
9797
98- # Thread module -- use only if Python has thread support for your OS.
99- # Note that you must have configured (and built!) Python with the
100- # --with-thread option passed to the configure script for this to work:
101-
102- # thread threadmodule.c
98+ # The thread module is now automatically enabled, see Setup.thread.
10399
104100# Pure module. Cannot be linked dynamically.
105101# -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
Original file line number Diff line number Diff line change 1+ # This file is transmogrified into Setup.thread by config.status.
2+
3+ # Its purpose is to automatically enable the thread module when the
4+ # --with-thread argument is given to the configure script.
5+
6+ # *NOTE*: if the configure script decides it can't support threads,
7+ # the thread module will still be enabled and cause compile errors.
8+ # The solution is not to use --with-thread on platforms that don't
9+ # support threads.
10+
11+ @USE_THREAD_MODULE@thread threadmodule.c
You can’t perform that action at this time.
0 commit comments