Ticket #21222: patch-universal-flags.diff
File patch-universal-flags.diff, 1.3 KB (added by Veence (Vincent), 15 years ago) |
---|
-
configure.in
old new 69 69 AC_SUBST(CONFIG_ARGS) 70 70 CONFIG_ARGS="$ac_configure_args" 71 71 72 AC_MSG_CHECKING(for --with-universal-arch-flags) 73 AC_ARG_WITH(universal-arch-flags, 74 AC_HELP_STRING(--with-universal-arch-flags=FLAGS, 75 directly select architectures to build on Mac OS), 76 [ 77 AC_MSG_RESULT($withval) 78 UNIVERSAL_ARCH_FLAGS="$withval" 79 ],[ 80 AC_MSG_RESULT(None) ]) 81 AC_SUBST(UNIVERSAL_ARCH_FLAGS) 82 72 83 AC_ARG_ENABLE(universalsdk, 73 84 AC_HELP_STRING(--enable-universalsdk@<:@=SDKDIR@:>@, Build against Mac OS X 10.4u SDK (ppc/i386)), 74 85 [ … … 869 880 870 881 AC_SUBST(BASECFLAGS) 871 882 872 # The -arch flags for universal builds on OSX873 UNIVERSAL_ARCH_FLAGS=874 AC_SUBST(UNIVERSAL_ARCH_FLAGS)875 883 876 884 # tweak BASECFLAGS based on compiler and platform 877 885 case $GCC in … … 913 921 914 922 915 923 if test "${enable_universalsdk}"; then 916 UNIVERSAL_ARCH_FLAGS=""924 if test ! "${UNIVERSAL_ARCH_FLAGS}"; then 917 925 if test "$UNIVERSAL_ARCHS" = "32-bit" ; then 918 926 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 919 927 ARCH_RUN_32BIT="" … … 930 938 AC_MSG_ERROR([proper usage is --with-universalarch=32-bit|64-bit|all]) 931 939 932 940 fi 941 fi 933 942 934 943 935 944 BASECFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${BASECFLAGS}"