File tree Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,9 @@ PY_CORE_CFLAGS= $(PY_CFLAGS) $(PY_CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
97
97
# Machine-dependent subdirectories
98
98
MACHDEP= @MACHDEP@
99
99
100
+ # Multiarch directory (may be empty)
101
+ MULTIARCH= @MULTIARCH@
102
+
100
103
# Install prefix for architecture-independent files
101
104
prefix= @prefix@
102
105
@@ -1040,6 +1043,7 @@ $(srcdir)/Lib/$(PLATDIR):
1040
1043
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
1041
1044
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
1042
1045
export EXE; EXE="$(BUILDEXE)"; \
1046
+ if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
1043
1047
cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
1044
1048
1045
1049
python-config: $(srcdir)/Misc/python-config.in
Original file line number Diff line number Diff line change @@ -861,6 +861,8 @@ Tests
861
861
Build
862
862
-----
863
863
864
+ - Issue #17029: Let h2py search the multiarch system include directory.
865
+
864
866
- Issue #16953: Fix socket module compilation on platforms with
865
867
HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong.
866
868
Original file line number Diff line number Diff line change 50
50
searchdirs = os .environ ['INCLUDE' ].split (';' )
51
51
except KeyError :
52
52
searchdirs = ['/usr/include' ]
53
+ try :
54
+ searchdirs .insert (0 , os .path .join ('/usr/include' ,
55
+ os .environ ['MULTIARCH' ]))
56
+ except KeyError :
57
+ pass
53
58
54
59
def main ():
55
60
global filedict
Original file line number Diff line number Diff line change @@ -688,6 +688,7 @@ BLDLIBRARY
688
688
DLLLIBRARY
689
689
LDLIBRARY
690
690
LIBRARY
691
+ MULTIARCH
691
692
BUILDEXEEXT
692
693
EGREP
693
694
GREP
@@ -4750,6 +4751,9 @@ hp*|HP*)
4750
4751
esac ;;
4751
4752
esac
4752
4753
4754
+ MULTIARCH=$( $CC --print-multiarch 2> /dev/null)
4755
+
4756
+
4753
4757
4754
4758
4755
4759
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking LIBRARY" >&5
Original file line number Diff line number Diff line change @@ -593,6 +593,9 @@ hp*|HP*)
593
593
esac;;
594
594
esac
595
595
596
+ MULTIARCH=$($CC --print-multiarch 2>/dev/null)
597
+ AC_SUBST ( MULTIARCH )
598
+
596
599
597
600
AC_SUBST ( LIBRARY )
598
601
AC_MSG_CHECKING ( LIBRARY )
You can’t perform that action at this time.
0 commit comments