Commit 3e6e2ac3 authored by doko@python.org's avatar doko@python.org

- Issue #17029: Let h2py search the multiarch system include directory.

parent e7e9c321
...@@ -97,6 +97,9 @@ PY_CORE_CFLAGS= $(PY_CFLAGS) $(PY_CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE ...@@ -97,6 +97,9 @@ PY_CORE_CFLAGS= $(PY_CFLAGS) $(PY_CPPFLAGS) $(CFLAGSFORSHARED) -DPy_BUILD_CORE
# Machine-dependent subdirectories # Machine-dependent subdirectories
MACHDEP= @MACHDEP@ MACHDEP= @MACHDEP@
# Multiarch directory (may be empty)
MULTIARCH= @MULTIARCH@
# Install prefix for architecture-independent files # Install prefix for architecture-independent files
prefix= @prefix@ prefix= @prefix@
...@@ -1040,6 +1043,7 @@ $(srcdir)/Lib/$(PLATDIR): ...@@ -1040,6 +1043,7 @@ $(srcdir)/Lib/$(PLATDIR):
export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \ export PYTHONPATH; PYTHONPATH="`pwd`/Lib"; \
export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \ export DYLD_FRAMEWORK_PATH; DYLD_FRAMEWORK_PATH="`pwd`"; \
export EXE; EXE="$(BUILDEXE)"; \ export EXE; EXE="$(BUILDEXE)"; \
if [ -n "$(MULTIARCH)" ]; then export MULTIARCH; MULTIARCH=$(MULTIARCH); fi; \
cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen cd $(srcdir)/Lib/$(PLATDIR); $(RUNSHARED) ./regen
python-config: $(srcdir)/Misc/python-config.in python-config: $(srcdir)/Misc/python-config.in
......
...@@ -861,6 +861,8 @@ Tests ...@@ -861,6 +861,8 @@ Tests
Build Build
----- -----
- Issue #17029: Let h2py search the multiarch system include directory.
- Issue #16953: Fix socket module compilation on platforms with - Issue #16953: Fix socket module compilation on platforms with
HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong. HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong.
......
...@@ -50,6 +50,11 @@ except KeyError: ...@@ -50,6 +50,11 @@ except KeyError:
searchdirs=os.environ['INCLUDE'].split(';') searchdirs=os.environ['INCLUDE'].split(';')
except KeyError: except KeyError:
searchdirs=['/usr/include'] searchdirs=['/usr/include']
try:
searchdirs.insert(0, os.path.join('/usr/include',
os.environ['MULTIARCH']))
except KeyError:
pass
def main(): def main():
global filedict global filedict
......
...@@ -688,6 +688,7 @@ BLDLIBRARY ...@@ -688,6 +688,7 @@ BLDLIBRARY
DLLLIBRARY DLLLIBRARY
LDLIBRARY LDLIBRARY
LIBRARY LIBRARY
MULTIARCH
BUILDEXEEXT BUILDEXEEXT
EGREP EGREP
GREP GREP
...@@ -4750,6 +4751,9 @@ hp*|HP*) ...@@ -4750,6 +4751,9 @@ hp*|HP*)
esac;; esac;;
esac esac
MULTIARCH=$($CC --print-multiarch 2>/dev/null)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
......
...@@ -593,6 +593,9 @@ hp*|HP*) ...@@ -593,6 +593,9 @@ hp*|HP*)
esac;; esac;;
esac esac
MULTIARCH=$($CC --print-multiarch 2>/dev/null)
AC_SUBST(MULTIARCH)
AC_SUBST(LIBRARY) AC_SUBST(LIBRARY)
AC_MSG_CHECKING(LIBRARY) AC_MSG_CHECKING(LIBRARY)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment