27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
diff -Naur Python-3.5.2-orig/Lib/plat-generic/regen Python-3.5.2/Lib/plat-generic/regen
|
|
--- Python-3.5.2-orig/Lib/plat-generic/regen 2016-06-26 00:38:36.000000000 +0300
|
|
+++ Python-3.5.2/Lib/plat-generic/regen 2016-07-12 14:21:56.200300700 +0300
|
|
@@ -1,3 +1,9 @@
|
|
#! /bin/sh
|
|
set -v
|
|
-eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" /usr/include/netinet/in.h
|
|
+if [ -n "$1" ]; then
|
|
+ CCINSTALL=$($1 -print-search-dirs | head -1 | cut -d' ' -f2)
|
|
+ REGENHEADER=${CCINSTALL//\\//}/include/stddef.h
|
|
+else
|
|
+ REGENHEADER=/usr/include/netinet/in.h
|
|
+fi
|
|
+eval $PYTHON_FOR_BUILD ../../Tools/scripts/h2py.py -i "'(u_long)'" $REGENHEADER
|
|
diff -Naur Python-3.5.2-orig/Makefile.pre.in Python-3.5.2/Makefile.pre.in
|
|
--- Python-3.5.2-orig/Makefile.pre.in 2016-07-12 14:21:55.874300700 +0300
|
|
+++ Python-3.5.2/Makefile.pre.in 2016-07-12 14:21:56.214800700 +0300
|
|
@@ -1363,7 +1363,7 @@
|
|
else \
|
|
PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)"; \
|
|
fi; \
|
|
- cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
|
|
+ cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen "$(CC)"
|
|
|
|
python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
|
|
# Substitution happens here, as the completely-expanded BINDIR
|