Ticket #32811: cairo-llvm-gcc-disable-lto.diff

File cairo-llvm-gcc-disable-lto.diff, 1.2 KB (added by raimue (Rainer Müller), 13 years ago)
  • files/patch-llvm-gcc-lto.diff

     
     1--- configure.orig      2012-01-09 03:44:48.000000000 +0100
     2+++ configure   2012-01-09 03:45:01.000000000 +0100
     3@@ -17236,7 +17236,7 @@
     4 MAYBE_WARN="$MAYBE_WARN -erroff=E_ENUM_TYPE_MISMATCH_ARG \
     5                        -erroff=E_ENUM_TYPE_MISMATCH_OP"
     6 
     7-MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common -flto"
     8+MAYBE_WARN="$MAYBE_WARN -fno-strict-aliasing -fno-common"
     9 
     10 MAYBE_WARN="$MAYBE_WARN -Wp,-D_FORTIFY_SOURCE=2"
     11 
  • Portfile

     
    9595}
    9696}
    9797
    98 if {${configure.compiler} == "clang" ||
    99     ${configure.compiler} == "llvm-gcc-4.2"} {
    100     configure.compiler gcc-4.2
    101     if {![file executable ${configure.cc}]} {
    102         depends_build-append port:apple-gcc42
    103         configure.compiler apple-gcc-4.2
    104     }
     98if {${configure.compiler} == "llvm-gcc-4.2"} {
     99    patchfiles patch-llvm-gcc-lto.diff
    105100}
    106101
    107102platform darwin 9 {