# Patch allowing building universal Python (ppc+ppc64). Supported only for 10.5.x
|
old
|
new
|
|
| 1523 | 1523 | specify the kind of macOS universal binary that |
| 1524 | 1524 | should be created. This option is only valid when |
| 1525 | 1525 | --enable-universalsdk is set; options are: |
| 1526 | | ("universal2", "intel-64", "intel-32", "intel", |
| | 1526 | ("universal2", "intel-64", "intel-32", "intel", "powerpc", |
| 1527 | 1527 | "32-bit", "64-bit", "3-way", or "all") see |
| 1528 | 1528 | Mac/README.rst |
| 1529 | 1529 | --with-framework-name=FRAMEWORK |
| … |
… |
|
| 7497 | 7497 | LIPO_INTEL64_FLAGS="" |
| 7498 | 7498 | if test "${enable_universalsdk}" |
| 7499 | 7499 | then |
| 7500 | | case "$UNIVERSAL_ARCHS" in |
| 7501 | | 32-bit) |
| 7502 | | UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" |
| 7503 | | LIPO_32BIT_FLAGS="" |
| 7504 | | ARCH_RUN_32BIT="" |
| 7505 | | ;; |
| 7506 | | 64-bit) |
| 7507 | | UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" |
| 7508 | | LIPO_32BIT_FLAGS="" |
| 7509 | | ARCH_RUN_32BIT="true" |
| 7510 | | ;; |
| 7511 | | all) |
| 7512 | | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" |
| 7513 | | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7514 | | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7515 | | ;; |
| 7516 | | universal2) |
| 7517 | | UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" |
| 7518 | | LIPO_32BIT_FLAGS="" |
| 7519 | | LIPO_INTEL64_FLAGS="-extract x86_64" |
| 7520 | | ARCH_RUN_32BIT="true" |
| 7521 | | ;; |
| 7522 | | intel) |
| 7523 | | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" |
| 7524 | | LIPO_32BIT_FLAGS="-extract i386" |
| 7525 | | ARCH_RUN_32BIT="/usr/bin/arch -i386" |
| 7526 | | ;; |
| 7527 | | intel-32) |
| 7528 | | UNIVERSAL_ARCH_FLAGS="-arch i386" |
| 7529 | | LIPO_32BIT_FLAGS="" |
| 7530 | | ARCH_RUN_32BIT="" |
| 7531 | | ;; |
| 7532 | | intel-64) |
| 7533 | | UNIVERSAL_ARCH_FLAGS="-arch x86_64" |
| 7534 | | LIPO_32BIT_FLAGS="" |
| 7535 | | ARCH_RUN_32BIT="true" |
| 7536 | | ;; |
| 7537 | | 3-way) |
| 7538 | | UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" |
| 7539 | | LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" |
| 7540 | | ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" |
| 7541 | | ;; |
| 7542 | | *) |
| 7543 | | as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 |
| 7544 | | ;; |
| 7545 | | esac |
| | 7500 | UNIVERSAL_ARCH_FLAGS="__UNIVERSAL_ARCHFLAGS__" |
| | 7501 | ARCH_RUN_32BIT="" |
| | 7502 | LIPO_32BIT_FLAGS="" |
| 7546 | 7503 | |
| 7547 | 7504 | if test "${UNIVERSALSDK}" != "/" |
| 7548 | 7505 | then |
| … |
… |
|
| 7584 | 7541 | if test ${enable_universalsdk} |
| 7585 | 7542 | then |
| 7586 | 7543 | case "$UNIVERSAL_ARCHS" in |
| 7587 | | all|3-way|intel|64-bit) |
| | 7544 | all|3-way|intel|powerpc|64-bit) |
| 7588 | 7545 | # These configurations were first supported in 10.5 |
| 7589 | 7546 | cur_target='10.5' |
| 7590 | 7547 | ;; |