File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
9797# Machine-dependent subdirectories
9898MACHDEP= @MACHDEP@
9999
100+ # Multiarch directory (may be empty)
101+ MULTIARCH= @MULTIARCH@
102+
100103# Install prefix for architecture-independent files
101104prefix= @prefix@
102105
@@ -1119,6 +1122,7 @@ $(srcdir)/Lib/$(PLATDIR):
11191122 export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
11201123 export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
11211124 export EXE; EXE="$(BUILDEXE)"; \
1125+ if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
11221126 cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
11231127
11241128python-config: $(srcdir)/Misc/python-config.in
Original file line number Diff line number Diff line change @@ -746,6 +746,8 @@ Tests
746746Build
747747-----
748748
749+ - Issue #17029: Let h2py search the multiarch system include directory.
750+
749751- Issue #16953: Fix socket module compilation on platforms with
750752 HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong.
751753
Original file line number Diff line number Diff line change 5050 searchdirs = os .environ ['INCLUDE' ].split (';' )
5151 except KeyError :
5252 searchdirs = ['/usr/include' ]
53+ try :
54+ searchdirs .insert (0 , os .path .join ('/usr/include' ,
55+ os .environ ['MULTIARCH' ]))
56+ except KeyError :
57+ pass
5358
5459def main ():
5560 global filedict
Original file line number Diff line number Diff line change @@ -684,6 +684,7 @@ BLDLIBRARY
684684DLLLIBRARY
685685LDLIBRARY
686686LIBRARY
687+ MULTIARCH
687688BUILDEXEEXT
688689EGREP
689690GREP
@@ -5351,6 +5352,9 @@ hp*|HP*)
53515352 esac ;;
53525353esac
53535354
5355+ MULTIARCH=$( $CC --print-multiarch 2> /dev/null)
5356+
5357+
53545358
53555359
53565360{ $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*)
764764 esac;;
765765esac
766766
767+ MULTIARCH=$($CC --print-multiarch 2>/dev/null)
768+ AC_SUBST ( MULTIARCH )
769+
767770
768771AC_SUBST ( LIBRARY )
769772AC_MSG_CHECKING ( LIBRARY )
You can’t perform that action at this time.
0 commit comments