fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / python3 / python-3.3.0-darwin.patch.1
blob7c43d8b419dbdba6eb176b429f157a0b76b7fa86
1 LO needs to build both against MacOSX SDK and not produce universal binaries.
3 diff -ru python3.old_/configure python3/configure
4 --- python3.old_/configure      2012-09-29 10:00:50.000000000 +0200
5 +++ python3/configure   2012-11-13 16:37:26.030013256 +0100
6 @@ -6353,7 +6353,19 @@
7             if test "${enable_universalsdk}"; then
8                 UNIVERSAL_ARCH_FLAGS=""
9                 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then
10 -                  UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
11 +           # LO does not use Universal Binaries (but the only way to set a SDK
12 +           # here implies that, so de-universalize here...)
13 +           case `/usr/bin/arch` in
14 +           i386)
15 +               UNIVERSAL_ARCH_FLAGS="-arch i386"
16 +               ;;
17 +           ppc)
18 +               UNIVERSAL_ARCH_FLAGS="-arch ppc"
19 +               ;;
20 +           *)
21 +               as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5
22 +               ;;
23 +           esac
24                    ARCH_RUN_32BIT=""
25                    LIPO_32BIT_FLAGS=""
26                  elif test "$UNIVERSAL_ARCHS" = "64-bit" ; then