X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=toolchain%2Fgcc%2Fpatches%2Fllvm%2F960-apple_no_m32.patch;fp=toolchain%2Fgcc%2Fpatches%2Fllvm%2F960-apple_no_m32.patch;h=62376b3812cfb934252e3aa96285cb61a41eb770;hp=0000000000000000000000000000000000000000;hb=b55b478f8ec9932864abe5f0b804b3a4b1434694;hpb=d4d6fbfde709945baf0d54c719436a4b4fa3da04 diff --git a/toolchain/gcc/patches/llvm/960-apple_no_m32.patch b/toolchain/gcc/patches/llvm/960-apple_no_m32.patch new file mode 100644 index 0000000000..62376b3812 --- /dev/null +++ b/toolchain/gcc/patches/llvm/960-apple_no_m32.patch @@ -0,0 +1,28 @@ +--- a/configure ++++ b/configure +@@ -1833,11 +1833,6 @@ case "${host}" in + # APPLE LOCAL begin dynamic-no-pic + i[3456789]86-*-darwin*) + host_makefile_frag="config/mh-x86-darwin" +- # gcc can default to x86_64 code generation, avoid that +- if test "${build}" = "${host}"; then +- CC="${CC-gcc} -m32" +- CXX="${CXX-g++} -m32" +- fi + ;; + # APPLE LOCAL end dynamic-no-pic + powerpc-*-aix*) +--- a/configure.in ++++ b/configure.in +@@ -993,11 +993,6 @@ case "${host}" in + # APPLE LOCAL begin dynamic-no-pic + i[[3456789]]86-*-darwin*) + host_makefile_frag="config/mh-x86-darwin" +- # gcc can default to x86_64 code generation, avoid that +- if test "${build}" = "${host}"; then +- CC="${CC-gcc} -m32" +- CXX="${CXX-g++} -m32" +- fi + ;; + # APPLE LOCAL end dynamic-no-pic + powerpc-*-aix*)