diff --git a/boost/tools/build/src/tools/python.jam b/boost/tools/build/src/tools/python.jam
index 90377ea..123f66a 100644
a
|
b
|
local rule probe ( python-cmd )
|
493 | 493 | sys.$(s) = [ SUBST $(output) \\<$(s)=([^$(nl)]+) $1 ] ; |
494 | 494 | } |
495 | 495 | } |
| 496 | # Try to get python abiflags |
| 497 | full-cmd = $(python-cmd)" -c \"from sys import abiflags; print(abiflags, end='')\"" ; |
| 498 | |
| 499 | sys.abiflags = [ SHELL $(full-cmd) ] ; |
496 | 500 | return $(output) ; |
497 | 501 | } |
498 | 502 | } |
… |
… |
local rule probe ( python-cmd )
|
502 | 506 | # have a value based on the information given. |
503 | 507 | # |
504 | 508 | local rule compute-default-paths ( target-os : version ? : prefix ? : |
505 | | exec-prefix ? ) |
| 509 | exec-prefix ? : abiflags ? ) |
506 | 510 | { |
507 | 511 | exec-prefix ?= $(prefix) ; |
508 | 512 | |
… |
… |
local rule compute-default-paths ( target-os : version ? : prefix ? :
|
539 | 543 | } |
540 | 544 | else |
541 | 545 | { |
542 | | includes ?= $(prefix)/include/python$(version) ; |
| 546 | includes ?= $(prefix)/include/python$(version)$(abiflags) ; |
543 | 547 | |
544 | 548 | local lib = $(exec-prefix)/lib ; |
545 | 549 | libraries ?= $(lib)/python$(version)/config $(lib) ; |
… |
… |
local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
|
783 | 787 | exec-prefix = $(sys.exec_prefix) ; |
784 | 788 | |
785 | 789 | compute-default-paths $(target-os) : $(sys.version) : |
786 | | $(sys.prefix) : $(sys.exec_prefix) ; |
| 790 | $(sys.prefix) : $(sys.exec_prefix) : $(sys.abiflags) ; |
787 | 791 | |
788 | 792 | version = $(sys.version) ; |
789 | 793 | interpreter-cmd ?= $(cmd) ; |