Ticket #49241: Portfile.diff
File Portfile.diff, 1.8 KB (added by howarth.at.macports@…, 9 years ago) |
---|
-
Portfile
old new 6 6 7 7 name llvm-gcc42 8 8 version 2336.11 9 revision 29 revision 3 10 10 set gcc_version 4.2.1 11 11 categories lang 12 12 platforms darwin … … 37 37 38 38 supported_archs i386 x86_64 39 39 40 if {${os.platform} eq "darwin" && ${os.major} >= 15} {41 depends_lib42 depends_run43 archive_sites44 pre-fetch {45 ui_error "${name} is not supported on El Capitan or later."46 return -code error {unsupported platform}47 }48 }49 50 40 select.group gcc 51 41 select.file ${filespath}/mp-llvm-gcc42 52 42 … … 54 44 set objroot ${workpath}/objroot 55 45 set symroot ${workpath}/symroot 56 46 57 # https://trac.macports.org/ticket/4289958 # TODO: Fix it to build with newer clang59 compiler.blacklist-append {clang > 503} macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 macports-clang-3.760 61 47 # Don't compile with self 62 48 compiler.blacklist-append macports-llvm-gcc-4.2 63 49 … … 82 68 autogen.patch \ 83 69 fixincludes.patch 84 70 71 if {[string match *clang* ${configure.cc}]} { 72 patchfiles-append clang-optimization.patch 73 } 74 85 75 post-extract { 86 76 xinstall -W ${filespath} build_gcc ${worksrcpath} 87 77 } … … 130 120 if {[string match "*clang*" ${configure.compiler}]} { 131 121 reinplace "s:--enable-werror : :" ${worksrcpath}/build_gcc 132 122 } 123 124 # ltmain.sh notes 'On all known operating systems, these are identical', and -module has gone 125 # away with Apple's clang-3.4 126 if {[string match *clang* ${configure.cc}]} { 127 reinplace "s:module:export_dynamic:" ${worksrcpath}/llvmCore/Makefile.rules 128 reinplace "s:-no-undefined::" ${worksrcpath}/llvmCore/tools/lto/Makefile 129 } 133 130 } 134 131 135 132 compiler.cpath /usr/include