File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -152,9 +152,11 @@ getpath.o: getpath.c Makefile
152
152
# When the configuration changes, we remove the library, so that it
153
153
# gets remade from scratch; this ensures to remove modules that are no
154
154
# 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:
156
158
-rm -f $(LIBRARY)
157
- $(SHELL) $(MAKESETUP) Setup.local Setup
159
+ $(SHELL) $(MAKESETUP) Setup.thread Setup. local Setup
158
160
159
161
Setup:
160
162
cp $(srcdir)/Setup.in Setup
Original file line number Diff line number Diff line change @@ -95,11 +95,7 @@ signal signalmodule.c # signal(2)
95
95
96
96
# gl glmodule.c cgensupport.c -I$(srcdir) -lgl -lX11
97
97
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.
103
99
104
100
# Pure module. Cannot be linked dynamically.
105
101
# -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