blob: 479567e8c6a42dafdc8bad9d33375efd5b08420b [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/Makefile.in
2+++ b/Makefile.in
3@@ -84,12 +84,7 @@ showkey: showkey.o $(LIBNEWT)
4
5 _snack.$(SOEXT): snack.c $(LIBNEWTSH)
6 @[ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS); do \
7- pyconfig=$$ver-config; \
8- if ! $$pyconfig --cflags > /dev/null 2>&1 && \
9- python-config --cflags > /dev/null 2>&1; then \
10- echo $$pyconfig not found, using python-config; \
11- pyconfig=python-config; \
12- fi; \
13+ pyconfig=$(PYTHON_CONFIG_PATH)/$$ver-config; \
14 mkdir -p $$ver; \
15 PCFLAGS=`$$pyconfig --cflags`; \
16 PIFLAGS=`$$pyconfig --includes`; \
17@@ -109,7 +104,7 @@ whiptcl.$(SOEXT): $(WHIPTCLOBJS) $(LIBNE
18 $(CC) -shared $(SHCFLAGS) $(LDFLAGS) -o whiptcl.$(SOEXT) $(WHIPTCLOBJS) -L. -lnewt $(LIBTCL) -lpopt $(LIBS)
19
20 $(LIBNEWT): $(LIBOBJS)
21- ar rv $@ $^
22+ $(AR) rv $@ $^
23
24 newt.o $(SHAREDDIR)/newt.o: newt.c Makefile
25