Files
macports-ports/lang/python27/files/patch-configure-universal.diff
2018-05-03 00:58:25 +10:00

54 lines
2.0 KiB
Diff

--- configure.orig 2018-04-30 08:47:33.000000000 +1000
+++ configure 2018-05-03 00:56:16.000000000 +1000
@@ -6121,47 +6121,9 @@
if test "${enable_universalsdk}"
then
- case "$UNIVERSAL_ARCHS" in
- 32-bit)
- UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
- LIPO_32BIT_FLAGS=""
- ARCH_RUN_32BIT=""
- ;;
- 64-bit)
- UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
- LIPO_32BIT_FLAGS=""
- ARCH_RUN_32BIT=""
- ;;
- all)
- UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
- LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
- ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
- ;;
- intel)
- UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
- LIPO_32BIT_FLAGS="-extract i386"
- ARCH_RUN_32BIT="/usr/bin/arch -i386"
- ;;
- intel-32)
- UNIVERSAL_ARCH_FLAGS="-arch i386"
- LIPO_32BIT_FLAGS=""
- ARCH_RUN_32BIT=""
- ;;
- intel-64)
- UNIVERSAL_ARCH_FLAGS="-arch x86_64"
- LIPO_32BIT_FLAGS=""
- ARCH_RUN_32BIT=""
- ;;
- 3-way)
- UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
- LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
- ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
- ;;
- *)
- as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5
- ;;
- esac
-
+ UNIVERSAL_ARCH_FLAGS="__UNIVERSAL_ARCHFLAGS__"
+ ARCH_RUN_32BIT=""
+ LIPO_32BIT_FLAGS=""
if test "${UNIVERSALSDK}" != "/"
then
CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"