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
@@ -1119,6 +1122,7 @@ $(srcdir)/Lib/$(PLATDIR):
1119
1122
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
1120
1123
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
1121
1124
export EXE; EXE="$(BUILDEXE)"; \
1125
+ if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
1122
1126
cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
1123
1127
1124
1128
python-config: $(srcdir)/Misc/python-config.in
Original file line number Diff line number Diff line change @@ -533,6 +533,8 @@ Tests
533
533
Build
534
534
-----
535
535
536
+ - Issue #17029: Let h2py search the multiarch system include directory.
537
+
536
538
- Issue #16953: Fix socket module compilation on platforms with
537
539
HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong.
538
540
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 @@ -684,6 +684,7 @@ BLDLIBRARY
684
684
DLLLIBRARY
685
685
LDLIBRARY
686
686
LIBRARY
687
+ MULTIARCH
687
688
BUILDEXEEXT
688
689
EGREP
689
690
GREP
@@ -5351,6 +5352,9 @@ hp*|HP*)
5351
5352
esac ;;
5352
5353
esac
5353
5354
5355
+ MULTIARCH=$( $CC --print-multiarch 2> /dev/null)
5356
+
5357
+
5354
5358
5355
5359
5356
5360
{ $as_echo " $as_me :${as_lineno-$LINENO } : checking LIBRARY" >&5
Original file line number Diff line number Diff line change @@ -764,6 +764,9 @@ hp*|HP*)
764
764
esac;;
765
765
esac
766
766
767
+ MULTIARCH=$($CC --print-multiarch 2>/dev/null)
768
+ AC_SUBST ( MULTIARCH )
769
+
767
770
768
771
AC_SUBST ( LIBRARY )
769
772
AC_MSG_CHECKING ( LIBRARY )
You can’t perform that action at this time.
0 commit comments